]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-fcgi: use explicit __objt_server on idle conn reinsert
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Dec 2024 16:47:12 +0000 (17:47 +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 FCGI 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_fcgi.c

index def1bf1fb87110583153730bf2d40fa5e146e222..4c2310be472a0df6e1a8857a0dc4d895798bfe29 100644 (file)
@@ -2980,7 +2980,7 @@ struct task *fcgi_io_cb(struct task *t, void *ctx, unsigned int state)
                t = 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);