mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-31 23:58:16 +00:00
BUG/MEDIUM: mux-h2: make sure to always report HTX EOM when consumed by headers
The way htx_xfer_blks() was used is wrong, if we receive data, we must report everything we found, not just the headers blocks. This ways causing the EOM to be postponed and some fast responses (or errors) to be incorrectly delayed. No backport is needed.
This commit is contained in:
parent
0f799ca4df
commit
0c22fa7d6f
@ -4505,7 +4505,7 @@ static size_t h2_rcv_buf(struct conn_stream *cs, struct buffer *buf, size_t coun
|
||||
buf_htx = htx_from_buf(buf);
|
||||
count = htx_free_space(buf_htx);
|
||||
|
||||
htx_ret = htx_xfer_blks(buf_htx, h2s_htx, count, (h2s_htx->sl_off != -1) ? HTX_BLK_EOH : HTX_BLK_EOM);
|
||||
htx_ret = htx_xfer_blks(buf_htx, h2s_htx, count, HTX_BLK_EOM);
|
||||
|
||||
buf_htx->extra = h2s_htx->extra;
|
||||
if (htx_is_not_empty(buf_htx))
|
||||
|
Loading…
Reference in New Issue
Block a user