MINOR: mux-fcgi: use explicit __objt_server on idle conn reinsert

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.
This commit is contained in:
Amaury Denoyelle 2024-12-06 17:47:12 +01:00
parent 1778284824
commit d4f6f2df5e

View 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);