From: Christopher Faulet Date: Tue, 8 Sep 2026 06:15:49 +0000 (+0200) Subject: MAJOR: htx: Remove HTX_FL_HAS_EOM flag X-Git-Tag: v3.5-dev8~157 X-Git-Url: https://git.kaiwu.me/$%7BISSUES%7D/static/gitweb.js?a=commitdiff_plain;h=522ba6dbcab2c28a4446d8dac8e8dc25a1f62d9e;p=haproxy.git MAJOR: htx: Remove HTX_FL_HAS_EOM flag 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. --- diff --git a/include/haproxy/htx-t.h b/include/haproxy/htx-t.h index f71502952..af4d14364 100644 --- a/include/haproxy/htx-t.h +++ b/include/haproxy/htx-t.h @@ -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; diff --git a/include/haproxy/htx.h b/include/haproxy/htx.h index 6a2701255..3550ee2c1 100644 --- a/include/haproxy/htx.h +++ b/include/haproxy/htx.h @@ -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; }