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 36770] - KeepAliveTimeout is ignored in all but the first VirtualHost
Date Wed, 22 Aug 2007 23:24:25 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=36770>.
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=36770





------- Additional Comments From jeremyk@newdream.net  2007-08-22 16:24 -------
I'm currently experiencing this bug as well.  I do have a little more
information about it, however.

It appears that the limit is not per server overall, it's per IP address.

Say we have something like this:
<VirtualHost 127.0.1.2:80>
ServerName virt1.example.com
KeepAliveTimeout 20
</VirtualHost>

<VirtualHost 127.1.2.3:80>
ServerName virt2.example.com
KeepAliveTimeout 14
</VirtualHost>

<VirtualHost 127.0.1.2:80>
ServerName virt3.example.com
KeepAliveTimeout 3
</VirtualHost>

<VirtualHost 127.1.2.3:80>
ServerName virt4.example.com
KeepAliveTimeout 12
</VirtualHost>

Then the keepalivetimeouts per domain will be the following:
virt1.example.com: 20
virt2.example.com: 14
virt3.example.com: 20
virt4.example.com: 14

Additionally, if we remove the KeepAliveTimeout setting from the
virt1.example.com virtualdomains, then both virt1.example.com and
virt3.example.com will revert to the default of 15 (or the global setting
specified outside of a virtualhost)

Coincidentally, you can still toggle keepalives on and off per domain,
regardless of load order.  If we change our config to look something like this:
<VirtualHost 127.0.1.2:80>
ServerName virt1.example.com
KeepAliveTimeout 20
</VirtualHost>

<VirtualHost 127.1.2.3:80>
ServerName virt2.example.com
KeepAliveTimeout 14
KeepAlive Off
</VirtualHost>

<VirtualHost 127.0.1.2:80>
ServerName virt3.example.com
KeepAliveTimeout 3
</VirtualHost>

<VirtualHost 127.1.2.3:80>
ServerName virt4.example.com
KeepAliveTimeout 12
</VirtualHost>

then virt2.example.com will not allow keepalives, and virt4.example.com will
have a 14 second keepalive timeout.

I can provide a full config file if need be.  I'm using apache 2.0.54 with the
following modules loaded (not in any particular order):
mod_autoindex
mod_auth
mod_auth_digest
mod_auth_mysql
libphp4
mod_access
mod_actions
mod_alias
mod_cgi
mod_deflate
mod_dir
mod_env
mod_expires
mod_headers
mod_include
mod_log_config
mod_logio
mod_mime
mod_negotiation
mod_rewrite
mod_ssl
mod_suexec
mod_fastcgi
mod_security
mod_setenvif
mod_encoding
mod_dav
mod_dav_fs
mod_cband
mod_dav_svn
mod_authz_svn
mod_limitipconn

Some of those modules might be in-house, although I don't think so.  If one
isn't recognized, let me know and I will find out where it came from.

If you need any additional information, I can provide anything required, just
say the words :)

-- 
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