Skip to content

Commit

Permalink
config: set default maxconn to 16384
Browse files Browse the repository at this point in the history
  • Loading branch information
hexian000 committed Oct 22, 2023
1 parent e2a92b5 commit 4339207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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
Expand Down

0 comments on commit 4339207

Please sign in to comment.