]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http-ana: Reset channels analysers when returning an error
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 10 Sep 2021 07:17:50 +0000 (09:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 10 Sep 2021 08:35:53 +0000 (10:35 +0200)
commit2d56500826d54fca445de2c0170384763b1cfdb1
tree561593e397c9a6abf15dfa362055ee8bd4a636a3
parent883d83e83c54c77cd16735716a029670b6317926
BUG/MEDIUM: http-ana: Reset channels analysers when returning an error

When an error is returned to the client, via a call to
http_reply_and_close(), the request channel is flushed and shut down and
HTTP analysis on both direction is finished. So it is safer to centralize
reset of channels analysers at this place. It is especially important when a
filter is attached to the stream when a client abort is detected. Because,
otherwise, the stream remains blocked because request analysers are not
reset.

This bug was hidden for a while. But since the fix 6fcd2d328 ("BUG/MINOR:
stream: Don't release a stream if FLT_END is still registered"), it is
possible to trigger it.

This patch must be backported everywhere the above commit was backported.
src/http_ana.c