[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.
diff --git a/src/stream_sock.c b/src/stream_sock.c
index c26e480..d4a603c 100644
--- a/src/stream_sock.c
+++ b/src/stream_sock.c
@@ -485,9 +485,10 @@
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;
}
}