MINOR: connection: use proxy protocol as parameter for srv conn hash
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 14 Jan 2021 09:15:29 +0000 (10:15 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 12 Feb 2021 11:54:04 +0000 (12:54 +0100)
commit1921d20fff5d78b10f85a878aac0079ab6cc90c4
treee761c9ca097d708126b7e46b55798b76997629b6
parentd10a200f62f873437952f9f021c5b4ea720bd887
MINOR: connection: use proxy protocol as parameter for srv conn hash

Use the proxy protocol frame if proxy protocol is activated on the
server line. Do not add anymore these connections in the private list.
If some requests are made with the same proxy fields, they can reuse
the idle connection.

The reg-tests proxy_protocol_send_unique_id must be adapted has it
relied on the side effect behavior that every requests from a same
connection reused a private server connection. Now, a new connection is
created as expected if the proxy protocol fields differ.
include/haproxy/connection-t.h
reg-tests/connection/proxy_protocol_send_unique_id.vtc
src/backend.c
src/connection.c