]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tcp-act: parse 'tcp-request attach-srv' session rule
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 25 Jul 2023 13:59:30 +0000 (15:59 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Aug 2023 13:02:32 +0000 (15:02 +0200)
commit58cb76d7e178bb1008a246c314ffea5a4f8df5e5
treea0f78e71989e6a2a046ec34f2b4b8af5031af0b7
parent6e428dfaf2706a3900acb2e8f77c0e4dffff1bff
MINOR: tcp-act: parse 'tcp-request attach-srv' session rule

Create a new tcp-request session rule 'attach-srv'.

The parsing handler is used to extract the server targetted with the
notation 'backend/server'. The server instance is stored in the act_rule
instance under the new union variant 'attach_srv'.

Extra checks are implemented in parsing to ensure attach-srv is only
used for proxy in HTTP mode and with listeners/server with no explicit
protocol reference or HTTP/2 only.

The action handler itself is really simple. It assigns the stored server
instance to the 'reverse' member of the connection instance. It will be
used in a future patch to implement passive reverse-connect.
doc/configuration.txt
include/haproxy/action-t.h
include/haproxy/connection.h
src/tcp_act.c