]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: xprt: Add a "get_capability" method.
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 13 Aug 2025 13:39:26 +0000 (13:39 +0000)
committerOlivier Houchard <cognet@ci0.org>
Wed, 20 Aug 2025 16:33:10 +0000 (18:33 +0200)
commit5731b8a19c7fddf18da56f93c23fa23045b6d4b0
tree2b3351b87b755778ea510401ef66d7e8dfb87e68
parent2623b7822eb18ae7daf7c1a066eecc011ec73b4e
MEDIUM: xprt: Add a "get_capability" method.

Add a new method to xprts, get_capability, that can be used to query if
an xprt supports something or not.
The first capability implemented is XPRT_CAN_SPLICE, to know if the xprt
will be able to use splicing for the provided connection.
The possible answers are XPRT_CONN_CAN_NOT_SPLICE, which indicates
splicing will never be possible for that connection,
XPRT_CONN_COULD_SPLICE, which indicates that splicing is not usable
right now, but may be in the future, and XPRT_CONN_CAN_SPLICE, that
means we can splice right away.
include/haproxy/connection-t.h
src/raw_sock.c
src/ssl_sock.c