mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 22:28:41 -04:00
MINOR: connection: Add macros to know if a conn or a cs uses an HTX mux
IS_HTX_CONN() and IS_HTX_CS may now be used to know if a connection or a conn-stream use an HTX based multiplexer.
This commit is contained in:
parent
370e0f1de5
commit
e60abd1a06
1 changed files with 3 additions and 0 deletions
|
|
@ -39,6 +39,9 @@ extern struct pool_head *pool_head_authority;
|
|||
extern struct xprt_ops *registered_xprt[XPRT_ENTRIES];
|
||||
extern struct mux_proto_list mux_proto_list;
|
||||
|
||||
#define IS_HTX_CONN(conn) ((conn)->mux && ((conn)->mux->flags & MX_FL_HTX))
|
||||
#define IS_HTX_CS(cs) (IS_HTX_CONN((cs)->conn))
|
||||
|
||||
/* I/O callback for fd-based connections. It calls the read/write handlers
|
||||
* provided by the connection's sock_ops.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue