]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h2: use explicit __objt_server on idle conn reinsert
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Dec 2024 16:44:26 +0000 (17:44 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Dec 2024 17:02:55 +0000 (18:02 +0100)
This commit is the counterpart of the previous one for H2 mux. It
replaces objt_server() by unsafe __objt_server(), as conn target is
guarantee to point to a valid server instance, which can then be used as
_srv_add_idle() argument.

src/mux_h2.c

index 9788753f6b57e48e010892e807e89a33963f1652..4479a311c163abe78a0240dad92e955d2c7fbbc0 100644 (file)
@@ -4816,7 +4816,7 @@ struct task *h2_io_cb(struct task *t, void *ctx, unsigned int state)
                h2c->next_tasklet = NULL;
 
        if (!ret && conn_in_list) {
-               struct server *srv = objt_server(conn->target);
+               struct server *srv = __objt_server(conn->target);
 
                HA_SPIN_LOCK(IDLE_CONNS_LOCK, &idle_conns[tid].idle_conns_lock);
                _srv_add_idle(srv, conn, conn_in_list == CO_FL_SAFE_LIST);