diff options
author | jan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2007-01-27 18:41:32 +0000 |
---|---|---|
committer | jan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2007-01-27 18:41:32 +0000 |
commit | 9424e53a5ac71b655227f02e460737c783b6cdb7 (patch) | |
tree | a6ad0539f304e966ad64ef0b0917a7711ba1a413 /src/base.h | |
parent | c3dfb5a798ba7b6acb77086102343d76ea1597e9 (diff) | |
download | lighttpd-9424e53a5ac71b655227f02e460737c783b6cdb7.tar.gz |
fixed out-of-fd detection
instead of testing activly if we will run out of fds soon we just let it
fail once and handle it nicely by disabling the sockets as usual.
* network*.c
- let the network-backends complain about not getting a FD
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@1534 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/base.h')
-rw-r--r-- | src/base.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -431,6 +431,7 @@ typedef enum { NETWORK_STATUS_CONNECTION_CLOSE, NETWORK_STATUS_WAIT_FOR_EVENT, NETWORK_STATUS_WAIT_FOR_AIO_EVENT, + NETWORK_STATUS_WAIT_FOR_FD, NETWORK_STATUS_INTERRUPTED } network_status_t; @@ -600,5 +601,6 @@ typedef struct server { } server; +int server_out_of_fds(server *srv); #endif |