summaryrefslogtreecommitdiffstats
path: root/contrib/libs/nghttp3/lib/nghttp3_conn.c
diff options
context:
space:
mode:
authorrobot-contrib <[email protected]>2025-05-01 08:17:53 +0300
committerrobot-contrib <[email protected]>2025-05-01 08:57:12 +0300
commit0d5861bb6d9b5e7f39cbdc17456909efab426bd9 (patch)
tree9414709cf2454ae612ed7a34c34a8047436d6932 /contrib/libs/nghttp3/lib/nghttp3_conn.c
parenta24e6ced72db4dbcfba43e2f8c630986b2c9c38b (diff)
Update contrib/libs/nghttp3 to 1.9.0
commit_hash:404c76a4ce7d29b42f27d1a0cd72424faad00313
Diffstat (limited to 'contrib/libs/nghttp3/lib/nghttp3_conn.c')
-rw-r--r--contrib/libs/nghttp3/lib/nghttp3_conn.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/contrib/libs/nghttp3/lib/nghttp3_conn.c b/contrib/libs/nghttp3/lib/nghttp3_conn.c
index 66b403fad78..04ffc9a0886 100644
--- a/contrib/libs/nghttp3/lib/nghttp3_conn.c
+++ b/contrib/libs/nghttp3/lib/nghttp3_conn.c
@@ -460,14 +460,8 @@ nghttp3_ssize nghttp3_conn_read_stream(nghttp3_conn *conn, int64_t stream_id,
return NGHTTP3_ERR_H3_STREAM_CREATION_ERROR;
}
} else if (conn->server) {
- if (nghttp3_client_stream_bidi(stream_id)) {
- if (stream->rx.hstate == NGHTTP3_HTTP_STATE_NONE) {
- stream->rx.hstate = NGHTTP3_HTTP_STATE_REQ_INITIAL;
- stream->tx.hstate = NGHTTP3_HTTP_STATE_REQ_INITIAL;
- }
- } else {
- assert(nghttp3_client_stream_uni(stream_id));
- }
+ assert(nghttp3_client_stream_bidi(stream_id) ||
+ nghttp3_client_stream_uni(stream_id));
} else {
assert(nghttp3_client_stream_bidi(stream_id) ||
nghttp3_server_stream_uni(stream_id));
@@ -1794,6 +1788,8 @@ conn_on_priority_update_stream(nghttp3_conn *conn,
stream->node.pri = fr->pri;
stream->flags |= NGHTTP3_STREAM_FLAG_PRIORITY_UPDATE_RECVED;
+ stream->rx.hstate = NGHTTP3_HTTP_STATE_REQ_INITIAL;
+ stream->tx.hstate = NGHTTP3_HTTP_STATE_REQ_INITIAL;
return 0;
}