diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-11-24 18:34:29 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-11-24 18:34:29 +0200 |
commit | a7779d56bb758157e122a420a56f2d7b4475e554 (patch) | |
tree | 98241b97aa36b7713b2a76677b387cf214a1dbb7 /doc/mastermenu.el | |
parent | e6772c4d68849cfdb4547a59bc51cb6dd0acd2c6 (diff) | |
download | pies-a7779d56bb758157e122a420a56f2d7b4475e554.tar.gz pies-a7779d56bb758157e122a420a56f2d7b4475e554.tar.bz2 |
Implement inetd connection rate.
* src/pies.h (struct component): New member "max_rate".
(default_max_rate): New extern.
* src/progman.c (check_rate): New function.
(check_spawn_rate, check_connection_rate): New functions.
(prog_open_socket): New function.
(prog_start): Rewrite using the above functions.
(_prog_accept): Check connection rate.
(progman_start): Special handling for inetd listeners.
(progman_wake_sleeping): Likewise.
* src/pies.c (default_max_rate): New global.
(component_keywords): New keyword max-rate.
(options): New option "rate".
(parse_opt): Handle the new option.
* src/inetd.c (inetd_conf_file): Set max_rate, instead of
max_instances.
Diffstat (limited to 'doc/mastermenu.el')
0 files changed, 0 insertions, 0 deletions