httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40376] - MaxKeepAliveRequests - bad counting
Date Thu, 31 Aug 2006 12:45:06 GMT
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


Mime
View raw message