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:
Amaury Denoyelle 2026-03-26 14:57:19 +01:00
parent 7c3fe4d0c0
commit 1e08247961

View File

@ -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)
{