Skip to content

Commit

Permalink
Avoid STOP_SENDING for unknown stream type in case fin is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzbuhl committed Jan 23, 2025
1 parent a3a7237 commit 24d4344
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/nghttp3_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,9 @@ nghttp3_ssize nghttp3_conn_read_uni(nghttp3_conn *conn, nghttp3_stream *stream,
break;
case NGHTTP3_STREAM_TYPE_UNKNOWN:
nconsumed = (nghttp3_ssize)srclen;
if (fin) {
break;
}

rv = conn_call_stop_sending(conn, stream, NGHTTP3_H3_STREAM_CREATION_ERROR);
if (rv != 0) {
Expand Down

0 comments on commit 24d4344

Please sign in to comment.