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)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 28 Jan 2021 13:18:33 +0000 (14:18 +0100)
commit08d87b3f49867440f66aee09173c84bf58cbc859
tree5dc781c39d976ae3b42816db0ecd35ae253af669
parent3f07c20fab8bc9d98c4f9c0c6e356fb3023c5632
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.
src/backend.c