]> git.kaiwu.me - nginx.git/commit
HTTP/2: client_header_timeout before first request (ticket #2142).
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 1 Mar 2021 14:31:28 +0000 (17:31 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 1 Mar 2021 14:31:28 +0000 (17:31 +0300)
commit0f5d0c5798eacb60407bcf0a76fc0b2c39e356bb
tree04b6bd0f49dcae1b36aadf561d55343465d79ad1
parenta74961f5529a79fed9cad66a04de98711705d6fd
HTTP/2: client_header_timeout before first request (ticket #2142).

With this change, behaviour of HTTP/2 becomes even closer to HTTP/1.x,
and client_header_timeout instead of keepalive_timeout is used before
the first request is received.

This fixes HTTP/2 connections being closed even before the first request
if "keepalive_timeout 0;" was used in the configuration; the problem
appeared in f790816a0e87 (1.19.7).
src/http/v2/ngx_http_v2.c