httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1412086 - /httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
Date Wed, 21 Nov 2012 13:21:01 GMT
Author: jim
Date: Wed Nov 21 13:21:01 2012
New Revision: 1412086

URL: http://svn.apache.org/viewvc?rev=1412086&view=rev
Log:
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

Modified:
    httpd/httpd/trunk/server/mpm/eventopt/eventopt.c

Modified: httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/eventopt/eventopt.c?rev=1412086&r1=1412085&r2=1412086&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/eventopt/eventopt.c (original)
+++ httpd/httpd/trunk/server/mpm/eventopt/eventopt.c Wed Nov 21 13:21:01 2012
@@ -1725,8 +1725,11 @@ static void * APR_THREAD_FUNC listener_t
                              "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 {



Mime
View raw message