Stop accepting new clients for 1 second on EMFILE/ENFILE. Based on

ongoing fixes to other daemons by Theo.
This commit is contained in:
Nicholas Marriott
2012-04-11 06:16:14 +00:00
parent 631d6b59fd
commit 6703ca8d26
3 changed files with 34 additions and 6 deletions

View File

@ -191,6 +191,8 @@ server_client_lost(struct client *c)
ARRAY_ADD(&dead_clients, c);
c->flags |= CLIENT_DEAD;
server_add_accept(0); /* may be more file descriptors now */
recalculate_sizes();
server_check_unattached();
server_update_socket();