Mercurial > hg > nginx
diff src/http/v3/ngx_http_v3_streams.c @ 8724:fc64ab301bad quic
QUIC: connection shutdown.
The function ngx_quic_shutdown_connection() waits until all non-cancelable
streams are closed, and then closes the connection. In HTTP/3 cancelable
streams are all unidirectional streams except push streams.
The function is called from HTTP/3 when client reaches keepalive_requests.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 15 Mar 2021 16:39:33 +0300 |
parents | 265062a99043 |
children | 98c4020f1c9a |
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_streams.c Mon Mar 15 19:26:04 2021 +0300 +++ b/src/http/v3/ngx_http_v3_streams.c Mon Mar 15 16:39:33 2021 +0300 @@ -80,6 +80,8 @@ ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 init uni stream"); + c->quic->cancelable = 1; + us = ngx_pcalloc(c->pool, sizeof(ngx_http_v3_uni_stream_t)); if (us == NULL) { ngx_http_close_connection(c); @@ -436,6 +438,8 @@ return NULL; } + sc->quic->cancelable = 1; + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 create uni stream, type:%ui", type);