From 3a89ce65aad826ad0a92c90de2fc81dcc72ddc36 Mon Sep 17 00:00:00 2001 From: Leon Woestenberg Date: Thu, 7 Dec 2006 23:20:12 +0000 Subject: lighttpd: add 1.4.13, closes #1662 --- packages/lighttpd/1.4.13/src-server.c.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/lighttpd/1.4.13/src-server.c.patch (limited to 'packages/lighttpd/1.4.13/src-server.c.patch') diff --git a/packages/lighttpd/1.4.13/src-server.c.patch b/packages/lighttpd/1.4.13/src-server.c.patch new file mode 100644 index 0000000000..6ca0c9ea40 --- /dev/null +++ b/packages/lighttpd/1.4.13/src-server.c.patch @@ -0,0 +1,22 @@ +--- lighttpd/src/server.c.orig 2006-03-04 09:12:17.000000000 -0800 ++++ lighttpd/src/server.c 2006-07-11 09:16:28.000000000 -0700 +@@ -1174,8 +1174,8 @@ + if (srv->sockets_disabled) { + /* our server sockets are disabled, why ? */ + +- if ((srv->cur_fds + srv->want_fds < srv->max_fds * 0.8) && /* we have enough unused fds */ +- (srv->conns->used < srv->max_conns * 0.9) && ++ if ((srv->cur_fds + srv->want_fds < srv->max_fds * 8 / 10) && /* we have enough unused fds */ ++ (srv->conns->used < srv->max_conns * 9 / 10) && + (0 == graceful_shutdown)) { + for (i = 0; i < srv->srv_sockets.used; i++) { + server_socket *srv_socket = srv->srv_sockets.ptr[i]; +@@ -1187,7 +1187,7 @@ + srv->sockets_disabled = 0; + } + } else { +- if ((srv->cur_fds + srv->want_fds > srv->max_fds * 0.9) || /* out of fds */ ++ if ((srv->cur_fds + srv->want_fds > srv->max_fds * 9 / 10) || /* out of fds */ + (srv->conns->used > srv->max_conns) || /* out of connections */ + (graceful_shutdown)) { /* graceful_shutdown */ + -- cgit v1.2.3