commit | c1c66a4759f34665d532deac9efa2571bc5e63ca | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue Sep 29 15:30:15 2020 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Fri Dec 04 14:41:48 2020 +0100 |
tree | 66d21849c094d939aa9edc453aa33afe27075591 | |
parent | bb8baf477da36785e2385c1347b569209f77adda [diff] |
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.