]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-ana: Update analyzers on both sides when switching in TUNNEL mode
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 18 Apr 2023 09:01:51 +0000 (11:01 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 18 Apr 2023 16:57:04 +0000 (18:57 +0200)
commit27c17d1ca5534a5dea98c1e63217c6effe1ede45
tree6542b4530f58aadad686d9a15859db7360b0f644
parent0783a7b08e769de05efc467a131467eeb6d94c22
BUG/MINOR: http-ana: Update analyzers on both sides when switching in TUNNEL mode

The commit 9704797fa ("BUG/MEDIUM: http-ana: Properly switch the request in
tunnel mode on upgrade") fixes the switch in TUNNEL mode, but only
partially. Because both channels are switch in TUNNEL mode in same time on
one side, the channel's analyzers on the opposite side are not updated
accordingly. This prevents the tunnel timeout to be applied.

So instead of updating both sides in same time, we only force the analysis
on the other side by setting CF_WAKE_ONCE flag when a channel is switched in
TUNNEL mode. In addition, we must take care to forward all data if there is
no DATAa TCP filters registered.

This patch is related to the issue #2125. It is 2.8-specific. No backport
needed.
src/http_ana.c