Httpd KeepAlive

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

"KeepAlive" specifies whether or not to allow persistent connections (more than one request per connection). Set to "Off" to deactivate.

...
KeepAlive Off
...

Setting KeepAliveTimeout to a high value may cause performance problems in heavily loaded servers. The higher the timeout, the more server processes will be kept occupied waiting on connections with idle clients. For more details on this see HTTP Persistent Connections Disadvantages.

A HTTP/1.1 client will automatically benefit from the persistent connection settings, and will get a persistent connection configured as per the content of KeepAlive, KeepAliveTimeout and MaxKeepAliveRequests. A HTTP/1.0 client should explicitly declare that it wants a persistent connection, as described here: HTTP/1.0 Persistent Connections.