0
Fork 0
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:
Loïc Hoguin 2025-02-05 16:22:06 +01:00
parent 073c481656
commit 9d4912208e
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
4 changed files with 4 additions and 4 deletions

View file

@ -76,7 +76,7 @@ connection_type (supervisor)::
Whether the connection process also acts as a supervisor.
dynamic_buffer ({8192, 131072})::
dynamic_buffer ({1024, 131072})::
Cowboy will dynamically change the socket's `buffer` size
depending on the size of the data it receives from the socket.

View file

@ -92,7 +92,7 @@ The connection window will only get updated when its size
becomes lower than this threshold, in bytes. This is to
avoid sending too many `WINDOW_UPDATE` frames.
dynamic_buffer ({8192, 131072})::
dynamic_buffer ({1024, 131072})::
Cowboy will dynamically change the socket's `buffer` size
depending on the size of the data it receives from the socket.

View file

@ -249,7 +249,7 @@ options and the zlib compression options. The
defaults optimize the compression at the expense
of some memory and CPU.
dynamic_buffer ({8192, 131072})::
dynamic_buffer ({1024, 131072})::
Cowboy will dynamically change the socket's `buffer` size
depending on the size of the data it receives from the socket.