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

Limit pings #32

Merged
merged 1 commit into from
Aug 6, 2020
Merged

Limit pings #32

merged 1 commit into from
Aug 6, 2020

Commits on Aug 6, 2020

  1. Limit pings

    1. Only allow one outgoing ping at a time. There's no reason to send more than one.
    2. When responding to pings, write responses into a buffered ping response
    channel instead of spawning a goroutine per ping. Allow up to 32 response
    pings (instead of just one) to allow for old peers and timeouts.
    Stebalien committed Aug 6, 2020
    Configuration menu
    Copy the full SHA
    203f9c9 View commit details
    Browse the repository at this point in the history