2.3.81 KeepAlive
KeepAlive specifies whether to enable the KeepAlive connection.
Description
KeepAlive specifies whether to enable the KeepAlive connection. The KeepAlive connection is performed only when the client also corresponds to the KeepAlive connection. Because the KeepAlive connection maintains the connection between the server process and the client, the responses to consecutive requests improve. In contrast, because the server process is specific for the client, as an entire web server, the service performance might decrease. Adjust the connection by using the KeepAliveTimeout and MaxKeepAliveRequests directives.
When the KeepAlive directive is On, the transmission of a response is completed, and then after the time specified in the KeepAliveTimeout directive elapses, a disconnect request is sent from the web server. When the KeepAlive directive is Off, the web server sends a disconnect request immediately after the transmission of a response is completed.
Depending on the response of the client to this disconnect request of the connection, the server process might be occupied for 2 seconds.
Syntax
KeepAlive {On|Off}
Specifiable values
- On
-
Enables the continuous connection (KeepAlive)
- Off
-
Disables the continuous connection (KeepAlive)
Location where it can be written
httpsd.conf
Example
KeepAlive On