This module provides a convenient way to set timeouts and minimum data rates for receiving requests. Should a timeout occur or a data rate be to low, the corresponding connection will be closed by the server.
This is logged at info
.
If needed, the
handshake
stage is available since version 2.4.39.
This directive can set various timeouts for completing the TLS handshake,
receiving the request headers and/or the request body from the client.
If the client fails to complete each of these stages within the configured
time, a 408 REQUEST TIME OUT
error is sent.
For SSL virtual hosts, the handshake
timeout values is the time
needed to do the initial SSL handshake. If the user's browser is configured to
query certificate revocation lists and the CRL server is not reachable, the
initial SSL handshake may take a significant time until the browser gives up
waiting for the CRL. Therefore the handshake
timeout should take
this possible overhead into consideration for SSL virtual hosts (if necessary).
The body timeout values include the time needed for SSL renegotiation
(if necessary).
When an httpready
) is received. The handshake and header timeouts
configured with
For each of the three timeout stages (handshake, header or body), there are three ways to specify the timeout:
The time in seconds allowed for completing the whole stage (handshaking, reading all of the request headers or body). A value of 0 means no limit.
This disables handshake=0
is the default already and could be omitted).
Same as above, but whenever data is received, the timeout value is increased according to the specified minimum data rate (in bytes per second).
Same as above, but the timeout will not be increased above the second value of the specified timeout range.