The official NGINX Open Source repository.
Go to file
Maxim Dounin 797a2dc7cf HTTP/2: fixed reusing connections with active requests.
New connections are marked reusable by ngx_http_init_connection() if there
are no data available for reading.  As a result, if SSL is not used,
ngx_http_v2_init() might be called when the connection is marked reusable.
If a HEADERS frame is immediately available for reading, this resulted
in connection being preserved in reusable state with an active request,
and possibly closed later as if during worker shutdown (that is, after
all active requests were finalized).

Fix is to explicitly mark connections non-reusable in ngx_http_v2_init()
instead of (incorrectly) assuming they are already non-reusable.

Found by Sergey Kandaurov.
2021-02-11 21:52:17 +03:00
auto Core: "-e" command line option. 2020-11-19 16:59:00 +00:00
conf MIME: added font/woff2 type (ticket #1243). 2018-06-15 17:29:55 +03:00
contrib Contrib: vim syntax, update core and 3rd party module directives. 2020-12-29 13:13:57 +02:00
docs Year 2021. 2021-01-19 20:35:17 +03:00
misc Updated OpenSSL used for win32 builds. 2020-12-15 16:49:24 +03:00
src HTTP/2: fixed reusing connections with active requests. 2021-02-11 21:52:17 +03:00
.hgtags release-1.19.6 tag 2020-12-15 17:41:39 +03:00