mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 20:50:24 +00:00
Add the idle_timeout HTTP/1.1 protocol option
This fixes the connection being dropped because of request_timeout despite there being some active streams.
This commit is contained in:
parent
73b4eb94ff
commit
95d2855f62
4 changed files with 57 additions and 35 deletions
|
@ -15,6 +15,7 @@ as a Ranch protocol.
|
|||
----
|
||||
opts() :: #{
|
||||
env := cowboy_middleware:env(),
|
||||
idle_timeout := timeout(),
|
||||
max_empty_lines := non_neg_integer(),
|
||||
max_header_name_length := non_neg_integer(),
|
||||
max_header_value_length := non_neg_integer(),
|
||||
|
@ -43,6 +44,9 @@ The default value is given next to the option name:
|
|||
env (#{})::
|
||||
Middleware environment.
|
||||
|
||||
idle_timeout (60000)::
|
||||
Time in ms with no data received before Cowboy closes the connection.
|
||||
|
||||
max_empty_lines (5)::
|
||||
Maximum number of empty lines before a request.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue