-
Notifications
You must be signed in to change notification settings - Fork 43
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
Track the accept backlog and add an upper limit #150
Comments
Now that we have landed the refactoring, this is relatively easy to implement. We just need to track the ACK backlog internally (i.e. the number of streams we have opened but the remote has not yet acknowledged). Once that number reaches 256, we should return |
This would be step (1), i.e. the sender side. Step (2) would be to implement the listener side. If I am not mistaken we acknowledge new incoming streams right away (please double check whether this is correct). Instead we should only acknowledge a new incoming stream once it has been passed to the user via |
I think we implicitly do that already by acknowledging it with the first We should confirm this with a test. |
See libp2p/specs#471 (comment).
The text was updated successfully, but these errors were encountered: