BUG/MINOR: backend: fix condition for reuse on mode HTTP
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 5 Mar 2021 14:34:56 +0000 (15:34 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 5 Mar 2021 14:44:51 +0000 (15:44 +0100)
commit249f0562cf2654488100d83d66c73902a2b1eb6c
tree3e6c07481f813932a2203e24d03fde082258ce2a
parentd7faa3d6e9626e644d43709b79803b80696cbf89
BUG/MINOR: backend: fix condition for reuse on mode HTTP

This commit is a fix/complement to the following one :
08d87b3f49867440f66aee09173c84bf58cbc859
BUG/MEDIUM: backend: never reuse a connection for tcp mode

It fixes the check for the early insertion of backend connections in
the reuse lists if the backend mode is HTTP.

The impact of this bug seems limited because :
- in tcp mode, no insertion is done in the avail list as mux_pt does not
  support multiple streams.
- in http mode, muxes are also responsible to insert backend connections
  in lists in their detach functions. Prior to this fix the reuse rate
  could be slightly inferior.

It can be backported to 2.3.
src/backend.c