Skip to content

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 requested review from MarcoPolo and Stebalien August 28, 2024 07:03
@sukunrt sukunrt force-pushed the sukun/stream-error-code branch from 945e586 to 33d9f38 Compare August 28, 2024 08:47
@sukunrt sukunrt force-pushed the sukun/stream-error-code branch from 33d9f38 to f56b1c3 Compare August 28, 2024 08:51
@sukunrt sukunrt marked this pull request as draft August 28, 2024 13:31
@sukunrt sukunrt force-pushed the sukun/stream-error-code branch from e17eaa8 to c17399c Compare August 28, 2024 19:39
@sukunrt sukunrt force-pushed the sukun/stream-error-code branch from c17399c to 9190b78 Compare August 29, 2024 12:58
@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
@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.

2 participants