mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue