From d63f92a6c3bb7caccd06644e7ed4ad74dc1a91e8 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Tue, 13 Aug 2019 10:41:48 +0300 Subject: [PATCH] [server] Increase maximum number of concurrent connections to 16k --- sources/cmd/server-dummy.go | 2 +- sources/cmd/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/cmd/server-dummy.go b/sources/cmd/server-dummy.go index 4e52afd..1cb8d8f 100644 --- a/sources/cmd/server-dummy.go +++ b/sources/cmd/server-dummy.go @@ -36,7 +36,7 @@ func main () () { NoDefaultDate : true, DisableHeaderNamesNormalizing : true, - Concurrency : 4 * 1024 + 128, + Concurrency : 16 * 1024 + 128, MaxRequestsPerConn : 256 * 1024, ReadBufferSize : 16 * 1024, diff --git a/sources/cmd/server.go b/sources/cmd/server.go index 7309262..451189f 100644 --- a/sources/cmd/server.go +++ b/sources/cmd/server.go @@ -1004,7 +1004,7 @@ func main_0 () (error) { NoDefaultDate : true, DisableHeaderNamesNormalizing : true, - Concurrency : 4 * 1024 + 128, + Concurrency : 16 * 1024 + 128, MaxRequestsPerConn : 256 * 1024, ReadBufferSize : 16 * 1024,