MINOR: connection: use attach-srv name as SNI reuse parameter on reverse
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 22 Aug 2023 14:58:55 +0000 (16:58 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Aug 2023 15:02:34 +0000 (17:02 +0200)
commit1723e21af21e9f1f53f890b4fe999f1e83b3d448
tree3c7dccb8fc5afc0e96d3cc49c4e6201b7bde414f
parent0b3758e18f95732184f7c4a0ef4998c6b71cf52f
MINOR: connection: use attach-srv name as SNI reuse parameter on reverse

On connection passive reverse from frontend to backend, its hash node is
calculated to be able to select it from the idle server pool. If
attach-srv rule defined an associated name, reuse it as the value for
SNI prehash.

This change allows a client to select a reverse connection by its name
by configuring its server line with a SNI to permit this.
include/haproxy/connection-t.h
src/connection.c
src/tcp_act.c