BUG/MEDIUM: backend: never reuse a connection for tcp mode
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 26 Jan 2021 16:35:46 +0000 (17:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Jan 2021 15:59:48 +0000 (16:59 +0100)
commit61185a5e10646c1d58ea8143aefaf553cc739593
tree37cd864ab7fcf8e8241ffb705e910dfa8f516ce1
parentc81fb7d203f2c5e959cdcced53851c26b10da382
BUG/MEDIUM: backend: never reuse a connection for tcp mode

The reuse of idle connections should only happen for a proxy with the
http mode. In case of a backend with the tcp mode, the reuse selection
and insertion in session list are skipped.

This behavior is present since commit :
MEDIUM: connection: Add private connections synchronously in session server list
It could also be further exagerated by :
MEDIUM: backend: add reused conn to sess if mux marked as HOL blocking

It can be backported up to 2.3.

(cherry picked from commit 08d87b3f49867440f66aee09173c84bf58cbc859)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/backend.c