]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: connection: remove unused mux-ops dedicated to QUIC
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 17 Jun 2025 09:49:04 +0000 (11:49 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 18 Jun 2025 15:02:50 +0000 (17:02 +0200)
Remove avail_streams_bidi/avail_streams_uni mux_ops. These callbacks
were designed to be specific to QUIC. However, they won't be necessary,
as stream layer only cares about bidirectional streams.

include/haproxy/connection-t.h

index 62808dfa99063af87acac825b0ce0681848e6ef1..1e95bdd0264be8f2f2f00b8f345d94a71b627e94 100644 (file)
@@ -449,8 +449,6 @@ struct mux_ops {
        int (*unsubscribe)(struct stconn *sc, int event_type,  struct wait_event *es); /* Unsubscribe <es> from events */
        int (*sctl)(struct stconn *sc, enum mux_sctl_type mux_sctl, void *arg); /* Provides information about the mux stream */
        int (*avail_streams)(struct connection *conn); /* Returns the number of streams still available for a connection */
-       int (*avail_streams_bidi)(struct connection *conn); /* Returns the number of bidirectional streams still available for a connection */
-       int (*avail_streams_uni)(struct connection *conn); /* Returns the number of unidirectional streams still available for a connection */
        int (*used_streams)(struct connection *conn);  /* Returns the number of streams in use on a connection. */
        void (*destroy)(void *ctx); /* Let the mux know one of its users left, so it may have to disappear */
        int (*ctl)(struct connection *conn, enum mux_ctl_type mux_ctl, void *arg); /* Provides information about the mux connection */