0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Add SETTINGS ack timeout and option settings_timeout

This commit is contained in:
Loïc Hoguin 2018-04-28 10:59:56 +02:00
parent add71bfb7e
commit 2db5ffbf84
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
3 changed files with 52 additions and 18 deletions

View file

@ -30,6 +30,7 @@ opts() :: #{
max_frame_size_sent => 16384..16777215 | infinity,
middlewares => [module()],
preface_timeout => timeout(),
settings_timeout => timeout(),
shutdown_timeout => timeout(),
stream_handlers => [module()]
}
@ -105,6 +106,9 @@ middlewares ([cowboy_router, cowboy_handler])::
preface_timeout (5000)::
Time in ms Cowboy is willing to wait for the connection preface.
settings_timeout (5000)::
Time in ms Cowboy is willing to wait for a SETTINGS ack.
shutdown_timeout (5000)::
Time in ms Cowboy will wait for child processes to shut down before killing them.
@ -116,8 +120,9 @@ stream_handlers ([cowboy_stream_h])::
* *2.4*: Add the options `initial_connection_window_size`,
`initial_stream_window_size`, `max_concurrent_streams`,
`max_decode_table_size`, `max_encode_table_size`,
`max_frame_size_received` and `max_frame_size_sent`
to configure HTTP/2 SETTINGS.
`max_frame_size_received`, `max_frame_size_sent`
and `settings_timeout` to configure HTTP/2 SETTINGS
and related behavior.
* *2.4*: Add the experimental option `enable_connect_protocol`.
* *2.0*: Protocol introduced.