0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 04:10:24 +00:00

Deprecate the inactivity_timeout options

When idle_timeout is configured we do not need a separate
timer to detect inactivity. Disabling idle_timeout is not
recommended and should not be necessary.
This commit is contained in:
Loïc Hoguin 2025-02-07 17:02:07 +01:00
parent dad67e19a1
commit cc97c770fb
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 4 additions and 2 deletions

View file

@ -105,7 +105,7 @@ This option can be updated at any time using the
inactivity_timeout (300000):: inactivity_timeout (300000)::
Time in ms with nothing received at all before Cowboy closes the connection. **DEPRECATED** Time in ms with nothing received at all before Cowboy closes the connection.
initial_stream_flow_size (65535):: initial_stream_flow_size (65535)::
@ -183,6 +183,7 @@ Ordered list of stream handlers that will handle all stream events.
== Changelog == Changelog
* *2.13*: The `inactivity_timeout` option was deprecated.
* *2.13*: The `active_n` default value was changed to `1`. * *2.13*: The `active_n` default value was changed to `1`.
* *2.13*: The `dynamic_buffer` and `hibernate` options were added. * *2.13*: The `dynamic_buffer` and `hibernate` options were added.
* *2.11*: The `reset_idle_timeout_on_send` option was added. * *2.11*: The `reset_idle_timeout_on_send` option was added.

View file

@ -133,7 +133,7 @@ Time in ms with no data received before Cowboy closes the connection.
inactivity_timeout (300000):: inactivity_timeout (300000)::
Time in ms with nothing received at all before Cowboy closes the connection. **DEPRECATED** Time in ms with nothing received at all before Cowboy closes the connection.
initial_connection_window_size (65535):: initial_connection_window_size (65535)::
@ -306,6 +306,7 @@ too many `WINDOW_UPDATE` frames.
== Changelog == Changelog
* *2.13*: The `inactivity_timeout` option was deprecated.
* *2.13*: The `active_n` default value was changed to `1`. * *2.13*: The `active_n` default value was changed to `1`.
* *2.13*: The `dynamic_buffer` and `hibernate` options were added. * *2.13*: The `dynamic_buffer` and `hibernate` options were added.
* *2.11*: Websocket over HTTP/2 is now considered stable. * *2.11*: Websocket over HTTP/2 is now considered stable.