mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-31 15:47:10 +00:00
BUG/MINOR: mux-h2: refrain from muxing during the preface
The condition to refrain from processing the mux was insufficient as it would only handle the outgoing connections. In essence it is not that much of a problem since we don't have streams yet on an incoming connetion. But it prevents waiting for the end of the preface before sending an early WINDOW_UPDATE message, thus causing the connections to fail in this case. This must be backported to 1.8 with a few minor adaptations.
This commit is contained in:
parent
c77d364905
commit
75a930affb
@ -2353,7 +2353,7 @@ static int h2_process_mux(struct h2c *h2c)
|
||||
h2c->st0 = H2_CS_SETTINGS1;
|
||||
}
|
||||
/* need to wait for the other side */
|
||||
if (h2c->st0 == H2_CS_SETTINGS1)
|
||||
if (h2c->st0 < H2_CS_FRAME_H)
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user