]> git.kaiwu.me - haproxy.git/commitdiff
MINOR: httpclient: Don't manually set HTX_FL_EOM flag after calling htx_xfer()
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jul 2026 14:22:58 +0000 (16:22 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Sep 2026 08:24:06 +0000 (10:24 +0200)
The htx_xfer() function already takes care to copy HTX_FL_EOM flag when it
is required. So there is no reason to still do it in the HTTP client I/O
handler function.

src/http_client.c

index 5e0b1ce971dacb2c31879e4c8349ec67364cd9af..96d55ee803919b90c4f1c333fcb6b16eeef840bb 100644 (file)
@@ -735,9 +735,6 @@ void httpclient_applet_io_handler(struct appctx *appctx)
                                        else
                                                applet_fl_clr(appctx, APPCTX_FL_INBLK_FULL);
 
-                                       if (htx->flags & HTX_FL_EOM)
-                                               hc_htx->flags |= HTX_FL_EOM;
-
                                        htx_to_buf(hc_htx, &hc->res.buf);
 
                                } else {
@@ -825,9 +822,6 @@ void httpclient_applet_io_handler(struct appctx *appctx)
                                        else
                                                applet_fl_clr(appctx, APPCTX_FL_INBLK_FULL);
 
-                                       if (htx_is_empty(htx) && (htx->flags & HTX_FL_EOM))
-                                               hc_htx->flags |= HTX_FL_EOM;
-
                                        htx_to_buf(hc_htx, &hc->res.buf);
                                } else {