Apache Timeout configuration 1.
KeepAliveTimeout
Grammar KeepAliveTimeout seconds
default 5
Context Server config, virtual host
Description The amount of time the server waits for subsequent requests on a persistent connection. the number of seconds that Apache will wait for subsequent requests before closing the connection. Once a request is received, the timeout value specified by the time-out instruction is applied. setting keepalivetimeout to high values can cause performance problems on heavily loaded servers. The higher the timeout, the more server processes are occupied, waiting for the connection to the idle client. In the context of a name-based virtual host, The value of the first defined virtual host (default host) in a set of Namevirtualhost is used. Other values will be ignored.
2.
Proxytimeout
Grammar Proxytimeout seconds
default Value of Timeout
Context Server config, virtual host
Description the network timeout for the proxy request. This directive allows the user to specify a timeout on the proxy request. This is useful when you have a pending slow / bug appserver , and you prefer to return a timeout and gracefully fail instead of waiting for the time the server returns.
3.
Requestreadtimeout
Grammar requestreadtimeout [Header=timeout[[-maxtimeout],minrate=rate] [body=timeout[[-maxtimeout],minrate=rate]
default Unset; No Limit
Context Server config, virtual host
Description sets the timeout value for receiving the request headers and principals from the client. This instruction can set different timeouts to receive the request header and the request body from the client. If the client fails to send a message header or principal within the configured time, it sends408time-out error of the request. ForSSLvirtual Host, the header timeout value includes the execution of the initialSSLthe time it takes to shake hands. If the user's browser is configured to query the certificate revocation list, theCRLserver is inaccessible, the initialSSLshaking hands can take a long time until the browser gives up waitingCRL. Therefore, the header timeout value should not be set toSSLthe very low value of the virtual host. The principal timeout value includesSSLtime required for renegotiation(if necessary). When usingAcceptfilterwhen (usuallyLinuxand theFreeBSD), the socket is not sent to the server process until at least one byte (or the entire request) has been received. UseRequestreadtimeoutthe configured header timeout is valid only after the server process has received the socket. such as:requestreadtimeout header=20-40,minrate=500 body=20,minrate=500
L Fixed Timeout value:
Type=timeout
the time allowed to read all the request headers or principals per second. A value of 0 indicates no limit.
L Timeout value is increased if data is received:
Type=timeout,minrate=data_rate
same as above, but whenever data is received, it is based on the specified minimum data rate ( in bytes per second ) increase the timeout value.
L Timeout value is increased if data is received, with an upper bound:
Type=timeout-maxtimeout,minrate=data_rate
As above, but the timeout will not exceed the second value of the specified time-out range.
4.
TimeOut
Grammar TimeOut seconds
default 300
Context Server config, virtual host
Description The time that the server waits for certain events before the request fails. The timeout directive defines the length of time that Apache waits for input and output in various situations.
L waits for the length of time the TCP packet arrives when reading the client's data, if the read buffer is empty .
When writing data to the client, if the send buffer is full, wait for the length of time to confirm the packet.
L in mod_cgi , wait for The length of time to output from the CGI script.
L in mod_ext_filter , the length of time to wait for the output from the filtering process.
L in mod_proxy , if no proxytimeoutis configured, the default timeout value.
Apache Timeout Configuration