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.
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);