]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: backend: do not set sni on connection reuse
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 1 Jun 2021 15:04:10 +0000 (17:04 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 17 Jun 2021 16:01:57 +0000 (18:01 +0200)
commit655dec81bde67a3e1acb146b18e6a038fe8c797b
treefcfc91cee0b6b91f8b7fcc3714a93f1fafa714db
parent2b1d91758d74f53df3b9a1dbb1d8e627320b9532
BUG/MINOR: backend: do not set sni on connection reuse

When reusing a backend connection, do not reapply the SNI on the
connection. It should already be defined when the connection was
instantiated on a previous connect_server invocation. As the SNI is a
parameter used to select a connection, only connection with same value
can be reused.

The impact of this bug is unknown and may be null. No memory leak has
been reported by valgrind. So this is more a cleaning fix.

This commit relies on the SF_SRV_REUSED flag and thus depends on the
following fix :
  BUG/MINOR: backend: restore the SF_SRV_REUSED flag original purpose

This should be backported up to 2.4.
src/backend.c