mirror of
https://github.com/c-cube/nanoev.git
synced 2025-12-05 19:00:35 -05:00
tiny_httpd: limit max pool size to 4096
This commit is contained in:
parent
9b7c628506
commit
ff870e7fa7
1 changed files with 1 additions and 1 deletions
|
|
@ -294,7 +294,7 @@ let create ?(masksigpipe = not Sys.win32) ?max_connections ?(timeout = 0.0)
|
|||
?buf_size ?(get_time_s = Unix.gettimeofday) ?(addr = "127.0.0.1")
|
||||
?(port = 8080) ?sock ?middlewares ~new_thread () : TH.Server.t =
|
||||
let max_connections = get_max_connection_ ?max_connections () in
|
||||
let max_pool_size = max_connections * 2 in
|
||||
let max_pool_size = min 4096 max_connections * 2 in
|
||||
let server =
|
||||
{
|
||||
Unix_tcp_server_.addr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue