]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connections: Add a new xprt method, remove_xprt.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 23 May 2019 15:47:36 +0000 (17:47 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 5 Jun 2019 16:03:38 +0000 (18:03 +0200)
commit5149b5985193fff9a2b7ed69f11f0621abbe2cbf
treee5ed57326055a6ec60ed6d914994f65531c95d69
parent000694cf9665c0e8b0125f3ca273a05b0e446622
MINOR: connections: Add a new xprt method, remove_xprt.

Add a new method to xprt_ops, remove_xprt. When called, if the provided
xprt_ctx is the same as the xprt's underlying xprt_ctx, it then uses the
new xprt provided, otherwise it calls the remove_xprt method of the next
xprt.
The goal is to be able to add a temporary xprt, that removes itself from
the chain when it did what it had to do. This will be used to implement
a pseudo-xprt for anything that just requires a handshake (such as the
proxy protocol).
include/types/connection.h
src/raw_sock.c
src/ssl_sock.c