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/kad: Limit # of inbound substreams to 32 #2699

Merged
merged 7 commits into from Jun 9, 2022

Commits on Jun 8, 2022

  1. Copy the full SHA
    67fef8b View commit details
    Browse the repository at this point in the history
  2. protocols/kad: Limit # of inbound substreams to 32

    A remote node may still send more than 32 requests in parallel by using more
    than one connection or by sending more than one request per stream.
    mxinden committed Jun 8, 2022
    Copy the full SHA
    9f152b3 View commit details
    Browse the repository at this point in the history
  3. protocols/kad: Favor new substreams over old ones waiting for reuse

    When a new inbound substream comes in and the limit of total inbound substreams
    is hit, try to find an old inbound substream waiting to be reused. In such case,
    replace the old with the new. In case no such old substream exists, drop the new
    one.
    mxinden committed Jun 8, 2022
    Copy the full SHA
    cfa733c View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    a6db3bb View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    f053062 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    95f4178 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    c177484 View commit details
    Browse the repository at this point in the history