mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-03 08:05:03 -04: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
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Reference in a new issue