]> git.kaiwu.me - nginx.git/commit
HTTP/3: fixed ngx_stat_active counter.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 22 Sep 2021 11:08:21 +0000 (14:08 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 22 Sep 2021 11:08:21 +0000 (14:08 +0300)
commit08dcf62f5b8ee49927dc38bae705b8fa777799e4
treed65779c112bfcc6c777afd16e1cec39d32ad2fe8
parent3ae914c837b2ad4217165007c980d31161d6db9f
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.
src/http/v3/ngx_http_v3_filter_module.c
src/http/v3/ngx_http_v3_request.c