Skip to content

Thread and connection limit #43

@cheme

Description

@cheme

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions