You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add configurable maximum connection limit with graceful rejection
- Add max_connections field to ServerOptions (default: 0 = no limit)
- Use tokio::sync::Semaphore to limit concurrent connections when max_connections > 0
- Gracefully reject excess connections with warning log instead of crashing
- Connection permits are automatically released when connections close
- Configure via ServerOptions::new().with_max_connections(500)
- Added tests to verify default behavior and configuration options
- Prevents resource exhaustion under high connection load
* fmt
0 commit comments