]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: haterm: Properly handle client timeout
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2026 16:13:21 +0000 (18:13 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2026 17:03:31 +0000 (19:03 +0200)
commitb6503f70e27d8b153d182f9440f0da0a56de4c44
tree94354ea29818518b538ac01134fd0477ec3f4292
parentc0f137b7045d6e27e62f890130f8fb707f75150b
BUG/MEDIUM: haterm: Properly handle client timeout

No client timeout was set with haterm. It could be an issue with
unresponsive clients. So the I/O timeout of the SC is initialized to the
frontend client timeout when the hstream is created. Then a read activity is
reported when data are received. This read activity is used to set an
expiration date on the hstream task and test it when the hstream is woken up
with TASK_WOKEN_TIMER reason.

When a client timeout is detected, the hstream try to send a 408 and report
an error.
src/haterm.c