diff --git a/src/mux_h1.c b/src/mux_h1.c index 534e14d79..6c104f309 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -1807,6 +1807,12 @@ static size_t h1_snd_buf(struct conn_stream *cs, struct buffer *buf, size_t coun if (!b_data(buf)) ret = count; } + + if (count && ret != count) { + if (!(h1c->wait_event.wait_reason & SUB_CAN_SEND)) + cs->conn->xprt->subscribe(cs->conn, SUB_CAN_SEND, &h1c->wait_event); + } + return ret; }