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

feat(core-p2p): implement throttling on outgoing p2p communication #3170

Merged
merged 3 commits into from
Oct 30, 2019

Commits on Oct 29, 2019

  1. feat(core-p2p): implement throttling on outgoing p2p communication

    Use the rate limiter in reverse to stop ourselves from sending too
    many requests to a given peer that could possibly trigger their
    protection and result in banning us.
    
    We use the default configuration for rate limits. So this will work as
    long as the peer is using the same software and has not changed his
    config or has made it more liberal. If the peer has made his limits
    more restricted, then we could still trigger their protection.
    
    A more robust solution would be to negotiate the rate limits at peer
    handshake and then obey different limits for each peer.
    vasild committed Oct 29, 2019
    Configuration menu
    Copy the full SHA
    c0123ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d97920 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2019

  1. Configuration menu
    Copy the full SHA
    5530603 View commit details
    Browse the repository at this point in the history