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

Limit client connection count #2542

Closed
zhengyangyong opened this issue Jul 18, 2018 · 1 comment
Closed

Limit client connection count #2542

zhengyangyong opened this issue Jul 18, 2018 · 1 comment
Labels

Comments

@zhengyangyong
Copy link

zhengyangyong commented Jul 18, 2018

Hi,we are heavy use vert.x, and we want limit active client connection count both in HttpServer and NetServer.
If server had accepted certain amount of connection, new connection need reject for overload protection.
Any good idea ?

Best Regards & Thanks!

@vietj
Copy link
Member

vietj commented Jul 18, 2018

@zhengyangyong you can maintain the count and when a new connection happens above the limit you can close the connection, on HttpServer you have a connectionHandler that will be called when the client connects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants