Mercurial > hg > nginx-quic
comparison src/http/v3/ngx_http_v3_request.c @ 8625:33578b8d453d quic
HTTP/3: fixed ngx_stat_active counter.
Previously the counter was not incremented for HTTP/3 streams, but still
decremented in ngx_http_close_connection(). There are two solutions here, one
is to increment the counter for HTTP/3 streams, and the other one is not to
decrement the counter for HTTP/3 streams. The latter solution looks
inconsistent with ngx_stat_reading/ngx_stat_writing, which are incremented on a
per-request basis. The change adds ngx_stat_active increment for HTTP/3
request and push streams.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 22 Sep 2021 14:08:21 +0300 |
parents | 7416d3b2fac5 |
children | a09bcc304eef |
comparison
equal
deleted
inserted
replaced
8624:3fdf0afd5d45 | 8625:33578b8d453d |
---|---|
76 return; | 76 return; |
77 } | 77 } |
78 | 78 |
79 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 init request stream"); | 79 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 init request stream"); |
80 | 80 |
81 #if (NGX_STAT_STUB) | |
82 (void) ngx_atomic_fetch_add(ngx_stat_active, 1); | |
83 #endif | |
84 | |
81 hc = c->data; | 85 hc = c->data; |
82 | 86 |
83 clcf = ngx_http_get_module_loc_conf(hc->conf_ctx, ngx_http_core_module); | 87 clcf = ngx_http_get_module_loc_conf(hc->conf_ctx, ngx_http_core_module); |
84 | 88 |
85 n = c->quic->id >> 2; | 89 n = c->quic->id >> 2; |