]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: quic: Implement the idle timeout feature
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 10 Mar 2022 14:11:57 +0000 (15:11 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 11 Mar 2022 10:37:30 +0000 (11:37 +0100)
commit530601cd84df069d910830e49ebf4bdecc8e1f8d
tree78261f77de8be1a9075c0fd9e45ff7f162a52869
parentc7a69e2aa55672031d5e3751a5ff06266076f312
MEDIUM: quic: Implement the idle timeout feature

The aim of the idle timeout is to silently closed the connection after a period
of inactivity depending on the "max_idle_timeout" transport parameters advertised
by the endpoints. We add a new task to implement this timer. Its expiry is
updated each time we received an ack-eliciting packet, and each time we send
an ack-eliciting packet if no other such packet was sent since we received
the last ack-eliciting packet. Such conditions may be implemented thanks
to QUIC_FL_CONN_IDLE_TIMER_RESTARTED_AFTER_READ new flag.
include/haproxy/xprt_quic-t.h
src/xprt_quic.c