]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: muxes: garbage collect the reset() method.
authorOlivier Houchard <cognet@ci0.org>
Sat, 13 Mar 2021 23:39:49 +0000 (00:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Mar 2021 14:33:04 +0000 (15:33 +0100)
Now that connections aren't being reused when they failed, remove the
reset() method. It was unimplemented anywhere, except for H1 where it did
nothing, anyway.

include/haproxy/connection-t.h
src/mux_h1.c

index 4635700d659c9e817d48dbc42b63f30c4af14930..c5d98e720e106502b3e893c02cf757699a0a6cc1 100644 (file)
@@ -417,7 +417,6 @@ struct mux_ops {
        int (*avail_streams)(struct connection *conn); /* Returns the number of 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 */
-       void (*reset)(struct connection *conn); /* Reset the mux, because we're re-trying to connect */
        int (*ctl)(struct connection *conn, enum mux_ctl_type mux_ctl, void *arg); /* Provides information about the mux */
        int (*takeover)(struct connection *conn, int orig_tid); /* Attempts to migrate the connection to the current thread */
        unsigned int flags;                           /* some flags characterizing the mux's capabilities (MX_FL_*) */
index 097259873aacdfb0e920039cd183c717bbf940e1..3c80e85f7f221d118c1d26ed7f8e6889b539eb02 100644 (file)
@@ -2867,11 +2867,6 @@ struct task *h1_io_cb(struct task *t, void *ctx, unsigned int state)
        return t;
 }
 
-static void h1_reset(struct connection *conn)
-{
-
-}
-
 static int h1_wake(struct connection *conn)
 {
        struct h1c *h1c = conn->ctx;
@@ -3849,7 +3844,6 @@ static const struct mux_ops mux_h1_ops = {
        .shutr       = h1_shutr,
        .shutw       = h1_shutw,
        .show_fd     = h1_show_fd,
-       .reset       = h1_reset,
        .ctl         = h1_ctl,
        .takeover    = h1_takeover,
        .flags       = MX_FL_HTX,