diff options
author | Roman Arutyunyan <arut@nginx.com> | 2021-03-15 16:39:33 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2021-03-15 16:39:33 +0300 |
commit | 9533df5b728833dd516f44d18953a3731c29e787 (patch) | |
tree | 4d6afd89f17d4777bc14b9065cd5434731b4840a /src/http/v3/ngx_http_v3_request.c | |
parent | 190b5d961c0c9b0942dd1a2d8cd609416d0d5114 (diff) | |
download | nginx-9533df5b728833dd516f44d18953a3731c29e787.tar.gz nginx-9533df5b728833dd516f44d18953a3731c29e787.zip |
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.
Diffstat (limited to 'src/http/v3/ngx_http_v3_request.c')
-rw-r--r-- | src/http/v3/ngx_http_v3_request.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c index 0c055ba0e..d4a5faccf 100644 --- a/src/http/v3/ngx_http_v3_request.c +++ b/src/http/v3/ngx_http_v3_request.c @@ -93,6 +93,9 @@ ngx_http_v3_init(ngx_connection_t *c) ngx_http_close_connection(c); return; } + + ngx_http_v3_shutdown_connection(c, NGX_HTTP_V3_ERR_NO_ERROR, + "reached maximum number of requests"); } cscf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_core_module); |