]> git.kaiwu.me - haproxy.git/commit
MINOR: connection: support PROXY v2 TLV emission without stream
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 16 May 2024 15:46:36 +0000 (17:46 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 22 May 2024 08:01:57 +0000 (10:01 +0200)
commit60496e884e5220b9330a1d8b3a1218f7988c879a
tree8692e01d399865c7d41302962f9c3653e13e232f
parent7a81bfc8d26dcee29b0fb405114bb604c32a087b
MINOR: connection: support PROXY v2 TLV emission without stream

Update API for PROXY protocol header encoding. Previously, it requires
stream parameter to be set. Change make_proxy_line() and associated
functions to add an extra session parameter. This is useful in context
where no stream is instantiated. For example, this is the case for rhttp
preconnect.

This change allows to extend PROXY v2 TLV encoding. Replace
build_logline() which requires a stream instance and call directly
sess_build_logline().

Note that stream parameter is kept as it is necessary for unique ID
encoding.

This change has no functional change for standard connections. However,
it is necessary to support TLV encoding on rhttp preconnect.
include/haproxy/connection.h
src/backend.c
src/connection.c