Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Client Rejection on Max Connections Limit #6

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

RaphiaRa
Copy link
Owner

  • Add HTTP status codes: TOO_MANY_REQUESTS and SERVICE_UNAVAILABLE.
  • Introduce th_exchange_mode type to initiate exchanges in reject mode, sending error responses directly to clients.
  • Implement a check in client_acceptor to monitor the number of active clients and set exchange_mode to REJECT_SERVICE_UNAVAILABLE when the maximum number of connections is reached.

- Add HTTP status codes: TOO_MANY_REQUESTS and SERVICE_UNAVAILABLE.
- Introduce `th_exchange_mode` type to initiate exchanges in reject mode, sending error responses directly to clients.
- Implement a check in `client_acceptor` to monitor the number of active clients and set `exchange_mode` to `REJECT_SERVICE_UNAVAILABLE` when the maximum number of connections is reached.
@RaphiaRa RaphiaRa merged commit 42de549 into main Sep 26, 2024
1 check passed
@RaphiaRa RaphiaRa deleted the connection_limit branch September 26, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant