]> granicus.if.org Git - apache/commitdiff
Sometimes we miss the last few items in the Q due
authorJim Jagielski <jim@apache.org>
Wed, 21 Nov 2012 13:21:01 +0000 (13:21 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 21 Nov 2012 13:21:01 +0000 (13:21 +0000)
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

server/mpm/eventopt/eventopt.c

index b05968b5363a83a0818d9b34a04d163b2781e821..7dcebf3d71ea9cf73a320da582e64b99fd25f7f6 100644 (file)
@@ -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 {