- publishing free software manuals
The Apache HTTP Server Reference Manual
by Apache Software Foundation
Paperback (6"x9"), 862 pages
ISBN 9781906966034
RRP £19.95 ($29.95)

Get a printed copy>>>

3.65  Apache Module mod_reqtimeout



Description:

Set timeout and minimum data rate for receiving requests

Status:

Experimental

Module Identifier:

reqtimeout_module

Source File:

mod_reqtimeout.c

Compatibility:

Available in Apache 2.2.15 and later



Directives:

RequestReadTimeout

3.65.1  Examples

  1. Allow 10 seconds to receive the request including the headers and 30 seconds for receiving the request body:

    RequestReadTimeout header=10 body=30

  2. Allow at least 10 seconds to receive the request body. If the client sends data, increase the timeout by 1 second for every 1000 bytes received, with no upper limit for the timeout (exept for the limit given indirectly by LimitRequestBody):

    RequestReadTimeout body=10,MinRate=1000

  3. Allow at least 10 seconds to receive the request including the headers. If the client sends data, increase the timeout by 1 second for every 500 bytes received. But do not allow more than 30 seconds for the request including the headers:

    RequestReadTimeout header=10-30,MinRate=500

RequestReadTimeout Directive

Description:

Set timeout values for receiving request headers and body from client.

Syntax:

RequestReadTimeout
[header=timeout[[-maxtimeout],MinRate=rate] [body=timeout[[-maxtimeout],MinRate=rate]

Default:

Unset; no limit

Context:

server config, virtual host

Status:

Experimental

Module:

mod_reqtimeout

This directive can set various timeouts for receiving the request headers and the request body from the client. If the client fails to send headers or body within the configured time, a 408 REQUEST TIMEOUT error is sent.

For SSL virtual hosts, the header timeout values include the time needed to do the initial SSL handshake. The body timeout values include the time needed for SSL renegotiation (if necessary).

When an AcceptFilter is in use (usually the case on Linux and FreeBSD), the socket is not sent to the server process before at least one byte (or the whole request for httpready) is received. The header timeout configured with RequestReadTimeout is only effective after the server process has received the socket.

For each of the two timeout types (header or body), there are three ways to specify the timeout:

ISBN 9781906966034The Apache HTTP Server Reference ManualSee the print edition