[Xitami] Keep Alive Max counter does not get decremented
Dmitry Isakbayev
xitami@lists.xitami.org
Thu, 28 Feb 2002 11:51:27 -0500
We are using "SSL/Pro Web Server v2.5b4".
Given these values in the defaults.cfg file -
[Server]
keep-alive=1
keep-alive-max=200
timeout=3600
In the HTTP headers, "max" is always 200. Is this a (known) problem?
It seems like "http_refresh_context" always resets "p_http->keep_alive_max"
to the configured value.
After making a few add-hoc changes -
1) removed call to "http_refresh_context" from
"smthttp.c::resolve_virtual_hostname"
2) removed call to "http_refresh_context" from
"smthttpl.c::http_init_context"
3) added call to "http_refresh_context" to
"smthttp.c::initialise_the_thread" (right after calling "http_init_context")
"max" starts to get decremented for every response on the alive connection.
Thank You,
Dmitry