mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
BUG/MINOR: backend: fix the conn_retries check for TFO
In 2.6, the retries counter on a stream was changed from retries left
to retries done via commit 731c8e6cf ("MINOR: stream: Simplify retries
counter calculation"). However, one comparison fell through the cracks
in order to detect whether or not we can use TFO (only first attempt),
resulting in TFO never working anymore.
This may be backported to all versions till 2.6.
This commit is contained in:
parent
51592f7a09
commit
799653d536
@ -1447,7 +1447,7 @@ static int do_connect_server(struct stream *s, struct connection *conn)
|
||||
|
||||
if (co_data(&s->res))
|
||||
conn_flags |= CONNECT_HAS_DATA;
|
||||
if (s->conn_retries == s->max_retries)
|
||||
if (s->conn_retries == 0)
|
||||
conn_flags |= CONNECT_CAN_USE_TFO;
|
||||
if (!conn_ctrl_ready(conn) || !conn_xprt_ready(conn)) {
|
||||
ret = conn->ctrl->connect(conn, conn_flags);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user