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

add support for sending error codes on stream reset #122

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Aug 28, 2024

This implements libp2p/specs#622

We use the Length field of a Window Update frame to send an error code on stream reset. This is safe since the window has no meaning post a reset, so existing implementations won't be impacted.

We cannot send the error in the Data frame as the body there's subject to flow control.

@sukunrt sukunrt marked this pull request as draft August 28, 2024 13:31
@sukunrt sukunrt marked this pull request as ready for review September 3, 2024 18:34
@sukunrt sukunrt merged commit 43cd707 into sukun/conn-error-2 Sep 12, 2024
9 checks passed
@sukunrt
Copy link
Member Author

sukunrt commented Sep 12, 2024

Merged into #121

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.

1 participant