MINOR: mux-h1: Rework h1_refresh_timeout to be easier to read
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 5 Oct 2020 15:13:05 +0000 (17:13 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:49 +0000 (14:41 +0100)
commitadcd789d928f0c2908f5cae508d2b63d191522f8
tree362429763449cc60d2b125ce0a3f7ebbb1a1a73b
parent3c82d8b328b7aadc2901e04f657315113446e7fd
MINOR: mux-h1: Rework h1_refresh_timeout to be easier to read

Conditions to set a timeout on the H1C task have been simplified or at least
changed to rely on H1 connection flags. Now, following rules are used :

 * the shutdown timeout is applied on dead (not alive) or shutted down
   connections.

 * The client/server timeout is applied if there are still some pending
   outgoing data.

 * The client timeout is applied on alive frontend connections with no
   conn-stream. It means on idle or embryionic frontend connections.

 * For all other connections (backend or attached connections), no timeout
   is applied. For frontend or backend attached connections, the timeout is
   handled by the application layer. For idle backend connections, there is
   no timeout.
src/mux_h1.c