From: Jim Jagielski Date: Wed, 21 Nov 2012 13:21:01 +0000 (+0000) Subject: Sometimes we miss the last few items in the Q due X-Git-Tag: 2.5.0-alpha~6090 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baf137d08f22afb3a922711fe3b185b9ae8298b4;p=apache Sometimes we miss the last few items in the Q due to time fuzzyness. Force the full Q by adding an extra 2sec fudge factor git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1412086 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/eventopt/eventopt.c b/server/mpm/eventopt/eventopt.c index b05968b536..7dcebf3d71 100644 --- a/server/mpm/eventopt/eventopt.c +++ b/server/mpm/eventopt/eventopt.c @@ -1725,8 +1725,11 @@ static void * APR_THREAD_FUNC listener_thread(apr_thread_t * thd, void *dummy) "All workers are busy, will close %d keep-alive " "connections", keepalive_q.count); + /* add in an extra 2sec fudge factor */ process_timeout_queue(&keepalive_q, - timeout_time + ap_server_conf->keep_alive_timeout, + timeout_time + + ap_server_conf->keep_alive_timeout + + apr_time_from_sec(2), start_lingering_close); } else {