Skip to content

Use LRU for Connection Management #79

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

Open
fhessel opened this issue Mar 23, 2020 · 0 comments
Open

Use LRU for Connection Management #79

fhessel opened this issue Mar 23, 2020 · 0 comments
Assignees
Labels

Comments

@fhessel
Copy link
Owner

fhessel commented Mar 23, 2020

Is your feature request related to a problem? Please describe.

The server can handle only very few connections in parallel. Connections have a keep-alive timeout of 20 seconds. If incoming connections are queuing up, idling keep-alive connections slow down their acceptance.

Describe the solution you'd like

Idling connections should be dropped based on an LRU mechanism. Incoming connections should drop the least recently used idling connection to get a free connection slot. To assure that an adversary cannot easily drain the active connections, there should also be a limit of connections per Client IP.

Additional context

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

1 participant