You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/08/31 14:45:06 UTC

DO NOT REPLY [Bug 40376] - MaxKeepAliveRequests - bad counting

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40376>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40376





------- Additional Comments From awisniewski@dm4.com.pl  2006-08-31 12:45 -------
And quick patch which can correct problem.

***************

--- apache_1.3.37/src/main/http_protocol.c      2006-07-12
10:16:05.000000000 +0200
+++ apache_1.3.37_correct/src/main/http_protocol.c      2006-08-31
14:22:34.000000000 +0200
@@ -431,7 +431,7 @@
         r->server->keep_alive &&
         (r->server->keep_alive_timeout > 0) &&
         ((r->server->keep_alive_max == 0) ||
-         (r->server->keep_alive_max > r->connection->keepalives)) &&
+         (r->server->keep_alive_max > r->connection->keepalives + 1)) &&
         !ap_status_drops_connection(r->status) &&
         !wimpy &&
         !ap_find_token(r->pool, conn, "close") &&


This quick fix corrects problem so problem is (I think) with "keepalives" start
value (should be 1 not 0). I'm sure that you can find better place in code for
correct this problem :) 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org