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:
parent
f0cae8dbcf
commit
6f57405b5c
3 changed files with 37 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue