comparison src/http/v3/ngx_http_v3_request.c @ 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 d6ef13c5fd8e
children de7d36aa9bc7
comparison
equal deleted inserted replaced
8926:3341e4089c6c 8927:e4952530e6af
403 if (h3scf->hq) { 403 if (h3scf->hq) {
404 return; 404 return;
405 } 405 }
406 #endif 406 #endif
407 407
408 if (h3scf->max_table_capacity > 0 && !c->read->eof) { 408 if (h3scf->max_table_capacity > 0 && !c->read->eof
409 && (c->quic->id & NGX_QUIC_STREAM_UNIDIRECTIONAL) == 0)
410 {
409 (void) ngx_http_v3_send_cancel_stream(c, c->quic->id); 411 (void) ngx_http_v3_send_cancel_stream(c, c->quic->id);
410 } 412 }
411 413
412 if (c->timedout) { 414 if (c->timedout) {
413 ngx_quic_reset_stream(c, NGX_HTTP_V3_ERR_GENERAL_PROTOCOL_ERROR); 415 ngx_quic_reset_stream(c, NGX_HTTP_V3_ERR_GENERAL_PROTOCOL_ERROR);