mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Add the idle_timeout option to HTTP/2
This commit is contained in:
parent
f5015cb14b
commit
8185d356c5
3 changed files with 87 additions and 13 deletions
|
@ -20,6 +20,7 @@ opts() :: #{
|
|||
connection_type => worker | supervisor,
|
||||
enable_connect_protocol => boolean(),
|
||||
env => cowboy_middleware:env(),
|
||||
idle_timeout => timeout(),
|
||||
inactivity_timeout => timeout(),
|
||||
initial_connection_window_size => 65535..16#7fffffff,
|
||||
initial_stream_window_size => 0..16#7fffffff,
|
||||
|
@ -63,6 +64,10 @@ env (#{})::
|
|||
|
||||
Middleware environment.
|
||||
|
||||
idle_timeout (60000)::
|
||||
|
||||
Time in ms with no data received before Cowboy closes the connection.
|
||||
|
||||
inactivity_timeout (300000)::
|
||||
|
||||
Time in ms with nothing received at all before Cowboy closes the connection.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue