mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Increase the default max_keepalive HTTP option to 1000
100 is very low for current deployments. 1000 is more appropriate as a default value.
This commit is contained in:
parent
4edc39b003
commit
8337aca4d3
3 changed files with 4 additions and 3 deletions
|
@ -176,7 +176,7 @@ init(Parent, Ref, Socket, Transport, ProxyHeader, Opts) ->
|
|||
parent=Parent, ref=Ref, socket=Socket,
|
||||
transport=Transport, proxy_header=ProxyHeader, opts=Opts,
|
||||
peer=Peer, sock=Sock, cert=Cert,
|
||||
last_streamid=maps:get(max_keepalive, Opts, 100)},
|
||||
last_streamid=maps:get(max_keepalive, Opts, 1000)},
|
||||
setopts_active(State),
|
||||
loop(set_timeout(State, request_timeout));
|
||||
{{error, Reason}, _, _} ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue