mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-03 02:32:03 +00:00
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.
This commit is contained in:
parent
5ff7d22767
commit
ec3ea6f698
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user