CLEANUP: channel: fix comment in ci_putblk.

The comment is outdated and refer to an old code.

Should be backported until branch 1.5
This commit is contained in:
Emeric Brun 2021-01-11 10:30:42 +01:00 committed by Willy Tarreau
parent e14b98c08e
commit 147b3f05b5

View File

@ -152,8 +152,9 @@ int ci_putblk(struct channel *chn, const char *blk, int len)
max = channel_recv_limit(chn); max = channel_recv_limit(chn);
if (unlikely(len > max - c_data(chn))) { if (unlikely(len > max - c_data(chn))) {
/* we can't write this chunk right now because the buffer is /* we can't write this chunk right now because the buffer is
* almost full or because the block is too large. Return the * almost full or because the block is too large. Returns
* available space or -2 if impossible. * -3 if block is too large for this buffer. Or -1 if the
* room left is not large enough.
*/ */
if (len > max) if (len > max)
return -3; return -3;