]> git.kaiwu.me - nginx.git/commit
HTTP/2: keepalive_timeout now armed once between requests.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 11 Feb 2021 18:52:24 +0000 (21:52 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 11 Feb 2021 18:52:24 +0000 (21:52 +0300)
commit94567a8f849c02c70ee7f51307fa0372c94c925b
treeff6b99f8ff831355f0a7d6cc3109d3da5e6ba1af
parent49ab3312448495f0ee8e00143a29624dde46ef5c
HTTP/2: keepalive_timeout now armed once between requests.

Previously, PINGs and other frames extended possible keepalive time,
making it possible to keep an open HTTP/2 connection for a long time.
Now the connection is always closed as long as keepalive_timeout expires,
similarly to how it happens in HTTP/1.x.

Note that as a part of this change, incomplete frames are no longer
trigger a separate timeout, so http2_recv_timeout (replaced by
client_header_timeout in previous patches) is essentially cancelled.
The client_header_timeout is, however, used for SSL handshake and
while reading HEADERS frames.
src/http/v2/ngx_http_v2.c