mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
MINOR: hq-interop: refix tx buffering
Incorrect usage of the buffer API : b_room() replaces b_size() to ensure that we have enough size for http data copy.
This commit is contained in:
parent
dcbe7b91d6
commit
1ac95445e6
@ -98,8 +98,8 @@ static size_t hq_interop_snd_buf(struct conn_stream *cs, struct buffer *buf,
|
||||
if (fsize > count)
|
||||
fsize = count;
|
||||
|
||||
if (b_size(&outbuf) < fsize)
|
||||
fsize = b_size(&outbuf);
|
||||
if (b_room(&outbuf) < fsize)
|
||||
fsize = b_room(&outbuf);
|
||||
|
||||
if (!fsize) {
|
||||
qcs->flags |= QC_SF_BLK_MROOM;
|
||||
|
Loading…
Reference in New Issue
Block a user