diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-12-23 23:51:39 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-12-23 23:57:48 +0200 |
commit | a37a83f6143e672a71ee4436fa24aaa2f9c81877 (patch) | |
tree | c5791a295aebf12bf7865f1c100dc3ee72bbc79b /doc/usr-acl.texi | |
parent | bb72dbbbbac7806a6321a404ec4c852b63e819b7 (diff) | |
download | pies-a37a83f6143e672a71ee4436fa24aaa2f9c81877.tar.gz pies-a37a83f6143e672a71ee4436fa24aaa2f9c81877.tar.bz2 |
Limit number of connections per socket (IP).
* src/inetd-bi.c (fd_write): Remove. Use fd_report instead.
* src/pies.c (component_keywords): New keywords: max-instances-message,
max-ip-connections, max-ip-connections-message, access-denied-message.
* src/pies.h (struct component): New members: max_ip_connections,
access_denied_message, max_instances_message, max_ip_connections_message.
(fd_report): New extern.
* src/progman.c (conn_class): New struct.
(struct prog.p): New member cclass.
(conn_tab): New static.
(conn_class_lookup, conn_class_report): New functions.
(progman_run_comp): Set cclass.
(fd_report): New function.
(_prog_accept): In case of failure (access denied, etc.)
optionally send response strings over the fd.
Limit number of connections per socket (IP).
(progman_cleanup): Update cclass counter.
Diffstat (limited to 'doc/usr-acl.texi')
0 files changed, 0 insertions, 0 deletions