Skip to content

Commit

Permalink
yamux: add error codes on stream reset
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Jul 16, 2024
1 parent f25d0c2 commit 10a14bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yamux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ This does a half-close indicating the sender will send no further data.

Once both sides have closed the connection, the stream is closed.

Alternatively, if an error occurs, the RST flag can be used to hard close a stream immediately.
Alternatively, if an error occurs, the RST flag can be used to hard close a stream immediately. To provide an error on stream resets, the first four bytes of the data following the header can contain a bigendian 32bit unsigned integer error code. Implementations should discard any data following the 4 bytes of error code.

#### Flow Control

Expand Down

0 comments on commit 10a14bf

Please sign in to comment.