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

protocols/relay: Limit inbound streams #2698

Merged
merged 11 commits into from
Jun 8, 2022
Merged

Conversation

mxinden
Copy link
Member

@mxinden mxinden commented Jun 8, 2022

Description

  • protocols/relay: Use prost-codec

  • protocols/relay: Respond to at most one incoming reservation request

    Also changes poll order prioritizing

    • Error handling over everything.
    • Queued events over existing circuits.
    • Existing circuits over accepting new circuits.
    • Reservation management of existing reservation over new reservation
      requests.
  • protocols/relay: Deny <= 8 incoming circuit requests with one per peer

  • protocols/relay: Deny new circuits before accepting new circuits

Links to any relevant issues

Open Questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

protocols/relay/CHANGELOG.md Outdated Show resolved Hide resolved
@mxinden mxinden merged commit 0d3787e into libp2p:master Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants