From 433920790c4c88b4a19f08f4b280b3697daea5fc Mon Sep 17 00:00:00 2001 From: hexian000 Date: Sun, 22 Oct 2023 19:51:56 +0800 Subject: [PATCH] config: set default maxconn to 16384 --- config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index 228ea6a..c21656b 100644 --- a/config.go +++ b/config.go @@ -54,7 +54,7 @@ type Config struct { StartupLimitRate int `json:"startuplimitrate"` // (optional) hard limit of concurrent unauthenticated connections, default to 60 StartupLimitFull int `json:"startuplimitfull"` - // (optional) max concurrent streams, default to 4096 + // (optional) max concurrent streams, default to 16384 MaxConn int `json:"maxconn"` // (optional) max concurrent sessions, default to 128 MaxSessions int `json:"maxsessions"` @@ -80,7 +80,7 @@ var DefaultConfig = Config{ StartupLimitStart: 10, StartupLimitRate: 30, StartupLimitFull: 60, - MaxConn: 4096, + MaxConn: 16384, MaxSessions: 128, AcceptBacklog: 256, StreamWindow: 256 * 1024, // 256 KiB