diff options
author | Loïc Hoguin <[email protected]> | 2020-05-20 11:08:58 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-05-20 11:08:58 +0200 |
commit | 8337aca4d31ffa8120704057675aacbbaa280975 (patch) | |
tree | 84905c9c574a5974ab66e42b1269a9e5aa0d7bf9 /src | |
parent | 4edc39b0030ad09098283cf9aac8182a1d5cba26 (diff) | |
download | cowboy-8337aca4d31ffa8120704057675aacbbaa280975.tar.gz cowboy-8337aca4d31ffa8120704057675aacbbaa280975.tar.bz2 cowboy-8337aca4d31ffa8120704057675aacbbaa280975.zip |
Increase the default max_keepalive HTTP option to 1000
100 is very low for current deployments. 1000 is more
appropriate as a default value.
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_http.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl index e7a28da..2833e79 100644 --- a/src/cowboy_http.erl +++ b/src/cowboy_http.erl @@ -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}, _, _} -> |