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:
Amaury Denoyelle 2021-12-09 10:07:23 +01:00
parent dcbe7b91d6
commit 1ac95445e6

View File

@ -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;