mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-24 20:31:00 +01:00
BUG/MEDIUM: stconn: Add a missing return statement in sc_app_shutr()
In the commut b08c5259e ("MINOR: stconn: Always report READ/WRITE event on
shutr/shutw"), a return statement was erroneously removed from
sc_app_shutr(). As a consequence, CF_SHUTR flags was never set. Fortunately,
it is the default .shutr callback function. Thus when a connection or an
applet is attached to the SC, another callback is used to performe a
shutdown for reads.
It is a 28-dev specific issue. No backport needed.
This commit is contained in:
parent
a664aa6a68
commit
c665bb5637
@ -537,7 +537,7 @@ static void sc_app_shutr(struct stconn *sc)
|
|||||||
struct channel *ic = sc_ic(sc);
|
struct channel *ic = sc_ic(sc);
|
||||||
|
|
||||||
if (ic->flags & CF_SHUTR)
|
if (ic->flags & CF_SHUTR)
|
||||||
|
return;
|
||||||
ic->flags |= CF_SHUTR|CF_READ_EVENT;
|
ic->flags |= CF_SHUTR|CF_READ_EVENT;
|
||||||
sc_ep_report_read_activity(sc);
|
sc_ep_report_read_activity(sc);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user