]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1: rework the h1_timeout_task() function
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 29 Sep 2020 13:30:15 +0000 (15:30 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:48 +0000 (14:41 +0100)
commitc1c66a4759f34665d532deac9efa2571bc5e63ca
tree66d21849c094d939aa9edc453aa33afe27075591
parentbb8baf477da36785e2385c1347b569209f77adda
MINOR: mux-h1: rework the h1_timeout_task() function

Mainly to make it easier to read. First of all, when a H1 connection is
still there, we check if the connection was stolen by another thread or
not. If yes we release the task and leave. Then we check if the task is
expired or not. Only expired tasks are considered. Finally, if a conn-stream
is still attached to the connection (H1C_F_CS_ATTACHED flag set), we
return. Otherwise, the task and the H1 connection are released.
src/mux_h1.c