Skip to content

Commit

Permalink
Merge pull request #320 from moritzbuhl/stop_sending-fin
Browse files Browse the repository at this point in the history
Avoid STOP_SENDING for unknown stream type in case fin is set.
  • Loading branch information
tatsuhiro-t authored Jan 23, 2025
2 parents a3a7237 + 24d4344 commit 39f6998
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 39f6998

Please sign in to comment.