]> 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, 24 Jul 2026 09:58:24 +0000 (11:58 +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 ce4511225cc0ce813355b2964e5148ddd31b1dfc..c9bf073f37782ac17d37b8f1790f466143482049 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.