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

Allow disabling keep-alive for HTTP/1.0 connections

This commit is contained in:
Loïc Hoguin 2018-11-14 17:10:26 +01:00
parent f0cae8dbcf
commit 6f57405b5c
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
3 changed files with 37 additions and 2 deletions

View file

@ -19,6 +19,7 @@ as a Ranch protocol.
opts() :: #{
connection_type => worker | supervisor,
env => cowboy_middleware:env(),
http10_keepalive => boolean(),
idle_timeout => timeout(),
inactivity_timeout => timeout(),
linger_timeout => timeout(),
@ -58,6 +59,10 @@ env (#{})::
Middleware environment.
http10_keepalive (true)::
Whether keep-alive is enabled for HTTP/1.0 connections.
idle_timeout (60000)::
Time in ms with no data received before Cowboy closes the connection.