]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stconn: Don't report blocked sends during connection establishment
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Aug 2023 08:56:21 +0000 (10:56 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 1 Sep 2023 12:18:26 +0000 (14:18 +0200)
commit9e394d34e061dfeb01b590ce48911a6d717dfde5
tree43b427e83b36a8af5dd1e36cb7fb4d420bd1b816
parent3479d99d5f4c7fd8afc4e52a92ec3d1fb5c91446
BUG/MINOR: stconn: Don't report blocked sends during connection establishment

The server timeout must not be handled during the connection establishment
to not superseed the connect timeout. To do so, we must not consider
outgoing data are blocked during this stage. Concretly, it means the fsb
time must not be updated during connection establishment.

It is not an issue with regular clients because the server timeout is only
defined when the connection is estalished. However, it may be an issue for the
HTTP client, when the server timeout is lower than the connect timeout. In this
case, an early 502 may be reported with no connection retries.

This patch must be backported to 2.8.
src/stconn.c