diff --git a/src/mux_h2.c b/src/mux_h2.c index eb8dd0ed4..57f1dfe0a 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -2267,6 +2267,9 @@ static void h2_detach(struct conn_stream *cs) if (h2s->flags & (H2_SF_BLK_MBUSY | H2_SF_BLK_MROOM | H2_SF_BLK_MFCTL)) return; + /* the stream could be in the send list */ + LIST_DEL(&h2s->list); + if ((h2c->flags & H2_CF_DEM_BLOCK_ANY && h2s->id == h2c->dsi) || (h2c->flags & H2_CF_MUX_BLOCK_ANY && h2s->id == h2c->msi)) { /* unblock the connection if it was blocked on this