diff --git a/src/stream_interface.c b/src/stream_interface.c index aae602ec5..e93048e8d 100644 --- a/src/stream_interface.c +++ b/src/stream_interface.c @@ -226,6 +226,8 @@ void stream_int_shutw(struct stream_interface *si) /* fall through */ case SI_ST_CON: case SI_ST_CER: + case SI_ST_QUE: + case SI_ST_TAR: si->state = SI_ST_DIS; /* fall through */ diff --git a/src/stream_sock.c b/src/stream_sock.c index b9b55b740..25573cb6f 100644 --- a/src/stream_sock.c +++ b/src/stream_sock.c @@ -873,6 +873,8 @@ void stream_sock_shutw(struct stream_interface *si) fd_delete(si->fd); /* fall through */ case SI_ST_CER: + case SI_ST_QUE: + case SI_ST_TAR: si->state = SI_ST_DIS; default: si->flags &= ~SI_FL_WAIT_ROOM;