Mercurial > hg > nginx
changeset 8927:e4952530e6af quic
HTTP/3: avoid sending stream cancellation for pushed streams.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 07 Dec 2021 15:49:30 +0300 |
parents | 3341e4089c6c |
children | e06283038ec8 |
files | src/http/v3/ngx_http_v3_request.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_request.c Tue Dec 07 15:42:10 2021 +0300 +++ b/src/http/v3/ngx_http_v3_request.c Tue Dec 07 15:49:30 2021 +0300 @@ -405,7 +405,9 @@ } #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); }