]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: backend: clarify the cases where we want to use early data
authorWilly Tarreau <w@1wt.eu>
Thu, 7 Aug 2025 15:32:24 +0000 (17:32 +0200)
committerOlivier Houchard <cognet@ci0.org>
Tue, 9 Sep 2025 17:01:24 +0000 (19:01 +0200)
commit6a2b3269f9495f7a5ac8bc1759f5be611cf2635a
tree63a47bf57564e5da9391dbce67f527697a7a8924
parent9b9d0720e10a4407a0ceb3116f47493bc4d03381
CLEANUP: backend: clarify the cases where we want to use early data

The conditions to use early data on output are super tricky and
detected later, so that it's difficult to figure how this works. This
patch splits the condition in two parts, the one that can be performed
early that is based on config/client/etc. It is used to clear a variable
that allows early data to be used in case any condition is not satisfied.
It was purposely split into multiple independent and reviewable tests.

The second part remains where it was at the end, and is used to temporarily
clear the handshake flags to let the data layer use early data. This one
being tricky, a large comment explaining the principle was added.

The logic was not changed at all, only the code was made more readable.
src/backend.c