# HG changeset patch # User Sergey Kandaurov # Date 1638881370 -10800 # Node ID e4952530e6af47dc4a038fad194fe849961b9fc5 # Parent 3341e4089c6c846d1997e53bd07b0fd4a9b86f68 HTTP/3: avoid sending stream cancellation for pushed streams. diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c --- a/src/http/v3/ngx_http_v3_request.c +++ b/src/http/v3/ngx_http_v3_request.c @@ -405,7 +405,9 @@ ngx_http_v3_reset_connection(ngx_connect } #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); }