mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-09 06:46:55 +00:00
BUG/MINOR: mux-h1: Wake busy mux for I/O when message is fully sent
If a mux is in busy mode when the outgoing EOM is consummed, it is important to wake it up for I/O. Because in busy mode, the mux is not subscribed for receive. Otherwise, it depends on the applicative layer to shutdown the H1 stream. Wake it up allows the mux to catch the read0 as soon as possible. This patch must be backported to 1.9.
This commit is contained in:
parent
50b1aaeffc
commit
cd67bffd26
@ -1733,6 +1733,10 @@ static size_t h1_process_output(struct h1c *h1c, struct buffer *buf, size_t coun
|
||||
goto error;
|
||||
done:
|
||||
h1m->state = H1_MSG_DONE;
|
||||
if (h1s->h1c->flags & H1C_F_IN_BUSY) {
|
||||
h1s->h1c->flags &= ~H1C_F_IN_BUSY;
|
||||
tasklet_wakeup(h1s->h1c->wait_event.tasklet);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user