mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Set max_keepalive default to 100 instead of infinity
This commit is contained in:
parent
529de4d518
commit
acd6847d3d
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@
|
||||||
%% <dt>max_headers</dt><dd>Max number of headers allowed.
|
%% <dt>max_headers</dt><dd>Max number of headers allowed.
|
||||||
%% Defaults to 100.</dd>
|
%% Defaults to 100.</dd>
|
||||||
%% <dt>max_keepalive</dt><dd>Max number of requests allowed in a single
|
%% <dt>max_keepalive</dt><dd>Max number of requests allowed in a single
|
||||||
%% keep-alive session. Defaults to infinity.</dd>
|
%% keep-alive session. Defaults to 100.</dd>
|
||||||
%% <dt>max_request_line_length</dt><dd>Max length allowed for the request
|
%% <dt>max_request_line_length</dt><dd>Max length allowed for the request
|
||||||
%% line. Defaults to 4096.</dd>
|
%% line. Defaults to 4096.</dd>
|
||||||
%% <dt>middlewares</dt><dd>The list of middlewares to execute when a
|
%% <dt>middlewares</dt><dd>The list of middlewares to execute when a
|
||||||
|
@ -107,7 +107,7 @@ init(ListenerPid, Socket, Transport, Opts) ->
|
||||||
MaxHeaderNameLength = get_value(max_header_name_length, Opts, 64),
|
MaxHeaderNameLength = get_value(max_header_name_length, Opts, 64),
|
||||||
MaxHeaderValueLength = get_value(max_header_value_length, Opts, 4096),
|
MaxHeaderValueLength = get_value(max_header_value_length, Opts, 4096),
|
||||||
MaxHeaders = get_value(max_headers, Opts, 100),
|
MaxHeaders = get_value(max_headers, Opts, 100),
|
||||||
MaxKeepalive = get_value(max_keepalive, Opts, infinity),
|
MaxKeepalive = get_value(max_keepalive, Opts, 100),
|
||||||
MaxRequestLineLength = get_value(max_request_line_length, Opts, 4096),
|
MaxRequestLineLength = get_value(max_request_line_length, Opts, 4096),
|
||||||
Middlewares = get_value(middlewares, Opts, [cowboy_router, cowboy_handler]),
|
Middlewares = get_value(middlewares, Opts, [cowboy_router, cowboy_handler]),
|
||||||
Env = [{listener, ListenerPid}|get_value(env, Opts, [])],
|
Env = [{listener, ListenerPid}|get_value(env, Opts, [])],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue