From ec3ea6f69837de9965b14a5c593b0302a1d5bd3d Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 13 Nov 2023 19:17:32 +0100 Subject: [PATCH] MINOR: stconn: Use SC to detect frontend connections in sc_conn_recv() In sc_conn_recv(), instead of using the connection to know we are on the frontend side, we now use the SC flags. It changes nothing but it is cleaner. --- src/stconn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stconn.c b/src/stconn.c index 46ce76bea7..c768bc8ff3 100644 --- a/src/stconn.c +++ b/src/stconn.c @@ -1327,7 +1327,7 @@ static int sc_conn_recv(struct stconn *sc) } /* Instruct the mux it must subscribed for read events */ - if (!conn_is_back(conn) && /* for frontend conns only */ + if (!(sc->flags & SC_FL_ISBACK) && /* for frontend conns only */ (sc_opposite(sc)->state != SC_ST_INI) && /* before backend connection setup */ (__sc_strm(sc)->be->options & PR_O_ABRT_CLOSE)) /* if abortonclose option is set for the current backend */ flags |= CO_RFL_KEEP_RECV; -- 2.47.3