]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: do not emit GOAWAY on idle ping expiration
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 17 Apr 2025 09:14:10 +0000 (11:14 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 17 Apr 2025 12:49:36 +0000 (14:49 +0200)
commitcc5a7a760fc5434bcfa6008dc56ac7aa1c036316
tree138700beb95c16c8a214c9236a4cfd58372a79bf
parent52246249ab4d4d948628ace0e0287efb7f7f7fdc
MINOR: mux-h2: do not emit GOAWAY on idle ping expiration

If idle-ping is activated and h2c task is expired due to missing PING
ACK, consider that the peer is away and the connection can be closed
immediately. GOAWAY emission is thus skipped.

A new test is necessary in h2c_update_timeout() when PING ACK is
currently expected, but the next timer expiration selected is not
idle-ping. This may happen if http-keep-alive/http-request timers are
selected first. In this case, H2_CF_IDL_PING_SENT flag is resetted. This
is necessary to not prevent GOAWAY emission on expiration.
src/mux_h2.c