mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-06 20:29:48 +00:00
BUG/MINOR: mux-h2: always send stream window update before connection's
In h2_process_mux() if we have some room and an attempt to send a window update for the connection was pending, it's done first. But it's not done for the stream, which will have for effect of postponing this attempt till next pass into h2_process_demux(), at the risk of seeing the send buffer full again. Let's always try to send both pending frames as soon as possible. This should be backported as far as 1.8.
This commit is contained in:
parent
9fd5aa8ada
commit
e74679a9c6
@ -2663,6 +2663,11 @@ static int h2_process_mux(struct h2c *h2c)
|
||||
}
|
||||
|
||||
/* start by sending possibly pending window updates */
|
||||
if (h2c->rcvd_s > 0 &&
|
||||
!(h2c->flags & (H2_CF_MUX_MFULL | H2_CF_MUX_MALLOC)) &&
|
||||
h2c_send_strm_wu(h2c) < 0)
|
||||
goto fail;
|
||||
|
||||
if (h2c->rcvd_c > 0 &&
|
||||
!(h2c->flags & (H2_CF_MUX_MFULL | H2_CF_MUX_MALLOC)) &&
|
||||
h2c_send_conn_wu(h2c) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user