diff --git a/src/mux_h1.c b/src/mux_h1.c index 9c64d8fb7..15d6634a6 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -2324,11 +2324,7 @@ static size_t h1_process_demux(struct h1c *h1c, struct buffer *buf, size_t count err: htx_to_buf(htx, buf); - se_fl_set(h1s->sd, SE_FL_EOI); - if (h1c->state < H1_CS_RUNNING) { - h1c->flags |= H1C_F_EOS; - se_fl_set(h1s->sd, SE_FL_EOS); - } + se_fl_set(h1s->sd, SE_FL_ERROR); TRACE_DEVEL("leaving on error", H1_EV_RX_DATA|H1_EV_STRM_ERR, h1c->conn, h1s); return 0; }