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 MaxConns and MaxConnsPerHost to server #10

Open
jkralik opened this issue Oct 12, 2018 · 2 comments
Open

Implement MaxConns and MaxConnsPerHost to server #10

jkralik opened this issue Oct 12, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@jkralik
Copy link
Member

jkralik commented Oct 12, 2018

MaxConnsPerHost optionally limits the total number of connections per host served by server(client).

MaxConns optionally limits the total number of connections served by server(client).

Zero means no limit.

@jkralik jkralik added the enhancement New feature or request label Oct 12, 2018
@jkralik jkralik changed the title Implement MaxConnsPerHost to server Implement MaxConns and MaxConnsPerHost to server Oct 12, 2018
@jdbruijn
Copy link
Collaborator

Hi @jkralik ,
I recently ran into a problem with usage of resources and would like to limit the number of simultaneous connections to the CoAP server. I found this issue but would like to know how much work it would be to implement this. Do you have an idea? I needed, I could help with the work to implement this.

@jkralik
Copy link
Member Author

jkralik commented Apr 20, 2020

Hi @jdbruijn
I think it is no so hard to implemented. For UDP, DTLS, TCP-TLS you need to introduce counter of sessions and when it reaches the limit:

and when some accepted session was closed, then you allowing accept of new sessions.

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

No branches or pull requests

2 participants