MEDIUM: connection: implement passive reverse
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 27 Jul 2023 13:56:34 +0000 (15:56 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Aug 2023 12:44:33 +0000 (14:44 +0200)
commit1f76b8ae075507891b8d12a8501faddc6c5e6c8f
treea184f3728ad6bc38ba59e0c903cf7baa6914430c
parentd8d9122a02adb7b6f13e952892f1c43d6e57bdb5
MEDIUM: connection: implement passive reverse

Define a new method conn_reverse(). This method is used to reverse a
connection from frontend to backend or vice-versa depending on its
initial status.

For the moment, passive reverse only is implemented. This covers the
transition from frontend to backend side. The connection is detached
from its owner session which can then be freed. Then the connection is
linked to the server instance.

only for passive connection on
frontend to transfer them on the backend side. This requires to free the
connection session after detaching it from.
include/haproxy/connection-t.h
include/haproxy/connection.h
src/connection.c