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

Thread and connection limit #43

Open
cheme opened this issue Mar 22, 2015 · 1 comment
Open

Thread and connection limit #43

cheme opened this issue Mar 22, 2015 · 1 comment
Labels

Comments

@cheme
Copy link
Owner

cheme commented Mar 22, 2015

Some mechanism are needed to limit thread :

  • by custom accept rules, accept should limit number of peer, that is nice first step to determinist number of threads, yet currently accept return bool an refused node are considered 'blocked' which is not the correct behaviour, so accept need to evolve to have more suitable return type (or another function to accept_new_thread).
  • by lib management (need more work), use rules to define this limit, then plug some management in :
    • server : need a way to remove some connect (currently not easy)
    • peermanager : should manage some count
@cheme cheme added the global label Mar 22, 2015
@cheme
Copy link
Owner Author

cheme commented Nov 22, 2015

New thread model, option to run on thread pools for server and client.
Currently only implemented for client, server could run on single thread as current alternative.

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