]> git.kaiwu.me - nginx.git/commitdiff
HTTP/3: avoid sending stream cancellation for pushed streams.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 7 Dec 2021 12:49:30 +0000 (15:49 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 7 Dec 2021 12:49:30 +0000 (15:49 +0300)
src/http/v3/ngx_http_v3_request.c

index e103a7eca5f06d183f9bbc3513cc08993f96e1bb..6faa3ee0bc02503a44e5b79d71d982c64bccc6f6 100644 (file)
@@ -405,7 +405,9 @@ ngx_http_v3_reset_connection(ngx_connection_t *c)
     }
 #endif
 
-    if (h3scf->max_table_capacity > 0 && !c->read->eof) {
+    if (h3scf->max_table_capacity > 0 && !c->read->eof
+        && (c->quic->id & NGX_QUIC_STREAM_UNIDIRECTIONAL) == 0)
+    {
         (void) ngx_http_v3_send_cancel_stream(c, c->quic->id);
     }