]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: stream: keep channel_auto_close() on the request error path
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Nov 2026 12:00:35 +0000 (13:00 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Nov 2026 12:01:32 +0000 (13:01 +0100)
commit733b95e729b3c0945eb3c86843368a961d5c8e32
tree5ae1ac461425c6abb11aefc44c4e4d0d0e044cb2
parentb6daef35e5d9f52e556a767975b7930ab37b9aa7
BUG/MEDIUM: stream: keep channel_auto_close() on the request error path

Commit 6c5df88d ("BUG/MEDIUM: stream: reset analyse_exp when analysers are
stripped on error") replaced channel_auto_close(req) with
req->analyse_exp = TICK_ETERNITY instead of adding the new statement, so
auto-close is no longer re-enabled on the client error/timeout path while
the remaining request analysers are stripped. The response path correctly
kept channel_auto_close(res) and got the analyse_exp reset in addition.

Restore channel_auto_close(req) so shutdowns are still forwarded when an
unhandled client error is caught, as fixed by b1368adc ("BUG/MEDIUM: stream:
Forward shutdowns when unhandled errors are caught"): without it the stream
may freeze when no analyser remains and no wakeup happens.

This patch must be backported with 6c5df88d to all stable versions.
src/stream.c