]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: listener/mux-h2: implement idle-ping on frontend side
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 8 Apr 2025 14:08:17 +0000 (16:08 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 17 Apr 2025 12:49:36 +0000 (14:49 +0200)
commit52246249ab4d4d948628ace0e0287efb7f7f7fdc
treef8ec414a66ad60e74713a940b6a46ede0bdfe764
parenta78a04cfae89505f960315d40080fde597b1d685
MEDIUM: listener/mux-h2: implement idle-ping on frontend side

This commit is the counterpart of the previous one, adapted on the
frontend side. "idle-ping" is added as keyword to bind lines, to be able
to refresh client timeout of idle frontend connections.

H2 MUX behavior remains similar as the previous patch. The only
significant change is in h2c_update_timeout(), as idle-ping is now taken
into account also for frontend connection. The calculated value is
compared with http-request/http-keep-alive timeout value. The shorter
delay is then used as expired date. As hr/ka timeout are based on
idle_start, this allows to run them in parallel with an idle-ping timer.
doc/configuration.txt
include/haproxy/connection.h
include/haproxy/listener-t.h
src/listener.c
src/mux_h2.c