]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: channel: fix comment in ci_putblk.
authorEmeric Brun <ebrun@haproxy.com>
Mon, 11 Jan 2021 09:30:42 +0000 (10:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 13 Feb 2021 08:43:17 +0000 (09:43 +0100)
The comment is outdated and refer to an old code.

Should be backported until branch 1.5

src/channel.c

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