mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-04-03 10:01:03 +02:00
MINOR: connection: add function to identify a QUIC connection
Add a simple helper conn_is_quic() function which tells if a connection runs over QUIC protocol. It will be useful when implementing QMux alternative.
This commit is contained in:
parent
7c3fe4d0c0
commit
1e08247961
@ -691,6 +691,12 @@ static inline int conn_is_ssl(struct connection *conn)
|
||||
return !!conn_get_ssl_sock_ctx(conn);
|
||||
}
|
||||
|
||||
/* Returns true if connection runs over QUIC. */
|
||||
static inline int conn_is_quic(const struct connection *conn)
|
||||
{
|
||||
return conn->flags & CO_FL_FDLESS;
|
||||
}
|
||||
|
||||
/* Returns true if connection must be reversed. */
|
||||
static inline int conn_is_reverse(const struct connection *conn)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user