https://issues.apache.org/bugzilla/show_bug.cgi?id=56226
Bug ID: 56226
Summary: per VirtualHost KeepAliveTimeout is not recognized
with event MPM
Product: Apache httpd-2
Version: 2.4.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mpm_event
Assignee: [email protected]
Reporter: [email protected]
With the worker MPM it is possible to configure different KeepAliveTimeout for
each VirtualHost.
Using the same configuration with the event MPM, the Server seems not to
recognize the per VirtualHost KeepAliveTimeouts. The experienced
keepAliveTimeout is always the one configured in the global section (or 5s
(default) if nothing is configured globally).
I do not completely understand the event MPM code, but it looks strange to me,
that in event.c the only references to server_rec::keep_alive_timeout are
references to the global server_rec "ap_server_conf". May be this is a give
away.
With the config (extract) bellow I got 25 seconds (virtual host) keepalive with
the worker MPM and 10 seconds (global) with the event MPM. Testet with telnet
on port 18080, sent Request and waited for the TCP connection to close.
Request:
GET / HTTP/1.1
Host: localhost
extract from httpd.conf:
....
Listen 127.0.0.1:18080
LogLevel debug
KeepAlive On
KeepAliveTimeout 10
<VirtualHost 127.0.0.1:18080>
ServerName localhost
KeepAlive On
KeepAliveTimeout 25
.....
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]