]> git.kaiwu.me - haproxy.git/commitdiff
DOC: htx: Fix comment of htx_expect_more() function
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jul 2026 08:30:04 +0000 (10:30 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Sep 2026 08:24:21 +0000 (10:24 +0200)
The comment of htx_expect_more() was inverted from what the function really
does. So let's fix it.

include/haproxy/htx.h

index 7d10a5b929e92be6f5755ec636f81fce479b5a08..6495b507486061ca1f0a82319dddee968225d16a 100644 (file)
@@ -783,7 +783,7 @@ static inline int htx_is_empty_noerr(const struct htx *htx)
        return (htx_is_empty(htx) && !(htx->flags & (HTX_FL_PARSING_ERROR|HTX_FL_PROCESSING_ERROR)));
 }
 
-/* Returns 1 if no more data are expected for the message <htx>. Otherwise it
+/* Returns 1 if more data are expected for the message <htx>. Otherwise it
  * returns 0. Note that it is illegal to call this with htx == NULL. This
  * function relies on the HTX_FL_EOM flags. It means tunneled data are not
  * considered here.