mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Lower the lower dynamic buffer value to 1024
There's not a big performance difference between 8192 and 1024 so let's use less memory at the start of the connection.
This commit is contained in:
parent
073c481656
commit
9d4912208e
4 changed files with 4 additions and 4 deletions
|
@ -166,7 +166,7 @@ ensure_dynamic_buffer(TransOpts, #{dynamic_buffer := DynamicBuffer}) ->
|
|||
ensure_dynamic_buffer(TransOpts=#{socket_opts := SocketOpts}, _) ->
|
||||
case proplists:get_value(buffer, SocketOpts, undefined) of
|
||||
undefined ->
|
||||
{TransOpts#{socket_opts => [{buffer, 8192}|SocketOpts]}, {8192, 131072}};
|
||||
{TransOpts#{socket_opts => [{buffer, 1024}|SocketOpts]}, {1024, 131072}};
|
||||
_ ->
|
||||
{TransOpts, false}
|
||||
end.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue