Skip to content

Commit 94da82d

Browse files
authored
properly report H3_NO_ERROR when remote terminates stream (#315)
* properly report H3_NO_ERROR when remote terminates stream * cargofmt
1 parent 94cb13f commit 94da82d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

h3/src/error/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ impl StreamError {
143143
StreamError::StreamError {
144144
code: Code::H3_NO_ERROR,
145145
..
146+
}
147+
| StreamError::RemoteTerminate {
148+
code: Code::H3_NO_ERROR,
146149
} => true,
147150
StreamError::ConnectionError(conn_error) => conn_error.is_h3_no_error(),
148151
_ => false,

0 commit comments

Comments
 (0)