From 295b8d1649855e75e975909cffff60be3ee0b72c Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 30 Sep 2020 17:14:55 +0200 Subject: [PATCH] MINOR: mux-h1: Reset more H1C flags when a H1 stream is destroyed When a H1 stream is destroyed, all dynamic flags on the H1 connection are reset to be sure to leave it in a clean state. --- src/mux_h1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mux_h1.c b/src/mux_h1.c index 467c7c730..682776f55 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -668,7 +668,9 @@ static void h1s_destroy(struct h1s *h1s) h1_release_buf(h1c, &h1s->rxbuf); - h1c->flags &= ~(H1C_F_WAIT_OPPOSITE|H1C_F_CS_EMBRYONIC|H1C_F_CS_ATTACHED); + h1c->flags &= ~(H1C_F_WAIT_OPPOSITE|H1C_F_WANT_SPLICE|H1C_F_CS_EMBRYONIC|H1C_F_CS_ATTACHED| + H1C_F_OUT_FULL|H1C_F_OUT_ALLOC|H1C_F_IN_SALLOC| + H1C_F_CO_MSG_MORE|H1C_F_CO_STREAMER); if (h1s->flags & H1S_F_ERROR) { h1c->flags |= H1C_F_CS_ERROR; TRACE_STATE("h1s on error, set error on h1c", H1_EV_H1C_ERR, h1c->conn, h1s);