]> git.kaiwu.me - haproxy.git/commitdiff
MAJOR: htx: Remove HTX_FL_HAS_EOM flag
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Sep 2026 06:15:49 +0000 (08:15 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Sep 2026 15:05:18 +0000 (17:05 +0200)
This flag can now be removed because it is no longer used. This commit is
pretty light but it is marked as MAJOR because it is an API change. All
external code relying on this flag will have to be updated.

include/haproxy/htx-t.h
include/haproxy/htx.h

index f71502952ca25217480b832c0b403e0567c95c09..af4d1436465dc77a3bc52604c6224ff24add7052 100644 (file)
@@ -180,7 +180,6 @@ static forceinline char *hsl_show_flags(char *buf, size_t len, const char *delim
 #define HTX_FL_PROCESSING_ERROR  0x00000002 /* Set when a processing error occurred */
 #define HTX_FL_FRAGMENTED        0x00000004 /* Set when the HTX buffer is fragmented */
 #define HTX_FL_UNORDERED         0x00000008 /* Set when the HTX buffer are not ordered */
-#define HTX_FL_HAS_EOM           0x00000010 /* Set when end-of-message is reached from the HTTP point of view */
 
 /* This function is used to report flags in debugging tools. Please reflect
  * below any single-bit flag addition above in the same order via the
@@ -193,7 +192,7 @@ static forceinline char *htx_show_flags(char *buf, size_t len, const char *delim
        _(0);
        /* flags */
        _(HTX_FL_PARSING_ERROR, _(HTX_FL_PROCESSING_ERROR,
-       _(HTX_FL_FRAGMENTED, _(HTX_FL_UNORDERED, _(HTX_FL_HAS_EOM)))));
+       _(HTX_FL_FRAGMENTED, _(HTX_FL_UNORDERED))));
        /* epilogue */
        _(~0U);
        return buf;
index 6a27012551fc2c00cdab28ba186e83c612b12d6e..3550ee2c12d4c0fb6ccb820ed2898e827bb96803 100644 (file)
@@ -865,7 +865,6 @@ static inline int htx_set_eom(struct htx *htx)
               htx_get_blk_type(blk) != HTX_BLK_EOT &&
               htx_get_blk_type(blk) != HTX_BLK_DATA);
        blk->flags |= HTX_BLK_FL_EOM;
-       htx->flags |= HTX_FL_HAS_EOM;
        return 1;
 }