summaryrefslogtreecommitdiff
path: root/src/base.h
diff options
context:
space:
mode:
authorjan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9>2007-01-27 18:41:32 +0000
committerjan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9>2007-01-27 18:41:32 +0000
commit9424e53a5ac71b655227f02e460737c783b6cdb7 (patch)
treea6ad0539f304e966ad64ef0b0917a7711ba1a413 /src/base.h
parentc3dfb5a798ba7b6acb77086102343d76ea1597e9 (diff)
downloadlighttpd-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base.h b/src/base.h
index ef17bb22..f4e4c371 100644
--- a/src/base.h
+++ b/src/base.h
@@ -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