httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <awisniew...@dm4.com.pl>
Subject Re: [users@httpd] Do KeepAlive options have a problem with counting ?
Date Thu, 31 Aug 2006 12:51:10 GMT
Hello again

> I suspect there is a problem with counting
> MaxKeepAliveRequests counter :/ Please tell me if I'm wrong ...
(...)
> KeepAlive on
> MaxKeepAliveRequests 2
> KeepAliveTimeout 130
(..)
> So there were three HTTP request with 12 bytes response :/
> It seems like problem with counting from 0 not from 1 (loop programing problem?) Any
suggestion :/

Because there was no reply I've checked source and I've found it :)

--- 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. I belive that is will be correct in
nexts apache verions in more clear form (keepalives should be started
with 1 value, not zero).

Regards
Andrzej Wisniewski


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message