Skip to content

Commit 44b8d73

Browse files
refactor: increase BurstThreshold in default security configuration
- Raise BurstThreshold from 100 to 1000 to improve handling of traffic spikes.
1 parent e6f6a0e commit 44b8d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/internal/middleware/security.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func DefaultSecurityConfig() SecurityConfig {
3939
MaxConnectionsPerHour: 1000,
4040
ConnectionWindow: time.Hour,
4141
MaxGlobalConnections: 5000,
42-
BurstThreshold: 100,
42+
BurstThreshold: 1000,
4343
BurstWindow: time.Minute,
4444
HandshakeTimeout: 60 * time.Second,
4545
IdleTimeout: 30 * time.Minute,

0 commit comments

Comments
 (0)