Re: [users@httpd] Do KeepAlive options have a problem with counting ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux