diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2021-12-07 15:49:30 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2021-12-07 15:49:30 +0300 |
commit | 9860a82b195afb9c8d7a98536c752927b677736b (patch) | |
tree | 699858e6460b03d8223da73b0050de49f5d3252f /src/http/v3/ngx_http_v3_request.c | |
parent | 1bd3cae95948165f23c5a9b99bd6d1e16f0f5caa (diff) | |
download | nginx-9860a82b195afb9c8d7a98536c752927b677736b.tar.gz nginx-9860a82b195afb9c8d7a98536c752927b677736b.zip |
HTTP/3: avoid sending stream cancellation for pushed streams.
Diffstat (limited to 'src/http/v3/ngx_http_v3_request.c')
-rw-r--r-- | src/http/v3/ngx_http_v3_request.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c index e103a7eca..6faa3ee0b 100644 --- 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_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); } |