You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2012/11/21 14:21:01 UTC
svn commit: r1412086 - /httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
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 {