mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02:00
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:
parent
e14b98c08e
commit
147b3f05b5
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user