]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: backend: inspect request not response buffer to check for TFO
authorWilly Tarreau <w@1wt.eu>
Wed, 31 Dec 2025 11:35:24 +0000 (12:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 31 Dec 2025 12:03:53 +0000 (13:03 +0100)
commit933cb76461795cf5ca9754cd821a409d1f8dec95
tree54ed2d187bf4490fd000086b958e56d5cfb4cf66
parent799653d536918a25179df1d9597dfa3c283ef989
BUG/MINOR: backend: inspect request not response buffer to check for TFO

In 2.6, do_connect_server() was introduced by commit 0a4dcb65f ("MINOR:
stream-int/backend: Move si_connect() in the backend scope") and changed
the approach to work with a stream instead of a stream-interface. However
si_oc(si) was wrongly turned to &s->res instead of &s->req, which breaks
TFO by always inspecting the response channel to figure whether there are
data pending.

This fix can be backported to all versions till 2.6.
src/backend.c