mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-20 22:01:49 -04:00
[MEDIUM] ensure that sock->shutw() also closes read for init states
Non-connected states will never have a chance to receive a shutr event, so we need to propagate the shutw across the stream interface.
This commit is contained in:
parent
3dbc69494a
commit
7f00651419
1 changed files with 2 additions and 1 deletions
|
|
@ -485,9 +485,10 @@ void stream_sock_shutw(struct stream_interface *si)
|
|||
fd_delete(si->fd);
|
||||
/* fall through */
|
||||
case SI_ST_CER:
|
||||
si->state = SI_ST_DIS;
|
||||
default:
|
||||
si->ib->flags |= BF_SHUTR;
|
||||
si->ib->rex = TICK_ETERNITY;
|
||||
si->state = SI_ST_DIS;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue