]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: proto_http: Remove the unused flag HTTP_MSGF_WAIT_CONN
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 17 Jul 2019 09:21:36 +0000 (11:21 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:24:12 +0000 (09:24 +0200)
This flag is set but never used. So remove it.

include/types/proto_http.h
src/proxy.c

index 9d84ef4656d272a1765076940370c7eaaaa0087c..a73a0a3d792cac8d346ea066e4faf8868e8b8f36 100644 (file)
 #define HTTP_MSGF_XFER_LEN    0x00000004  /* message xfer size can be determined */
 #define HTTP_MSGF_VER_11      0x00000008  /* the message is HTTP/1.1 or above */
 
-/* If this flag is set, we don't process the body until the connect() is confirmed.
- * This is only used by the request forwarding function to protect the buffer
- * contents if something needs them during a redispatch.
- */
-#define HTTP_MSGF_WAIT_CONN   0x00000010  /* Wait for connect() to be confirmed before processing body */
+/* unused: 0x00000010 */
+
 #define HTTP_MSGF_COMPRESSING 0x00000020  /* data compression is in progress */
 
 #define HTTP_MSGF_BODYLESS    0x00000040  /* The message has no body (content-length = 0) */
index 94b26eb99cb7bc3d56f95cc1cae08d7fb8d33859..3012233745fee8c7fd4618655b5377af7fbb6126 100644 (file)
@@ -1464,15 +1464,6 @@ int stream_set_backend(struct stream *s, struct proxy *be)
                        }
                }
 
-               /* If an LB algorithm needs to access some pre-parsed body contents,
-                * we must not start to forward anything until the connection is
-                * confirmed otherwise we'll lose the pointer to these data and
-                * prevent the hash from being doable again after a redispatch.
-                */
-               if (be->mode == PR_MODE_HTTP &&
-                   (be->lbprm.algo & (BE_LB_KIND | BE_LB_PARM)) == (BE_LB_KIND_HI | BE_LB_HASH_PRM))
-                       s->txn->req.flags |= HTTP_MSGF_WAIT_CONN;
-
                /* we may request to parse a request body */
                if (be->options & PR_O_WREQ_BODY)
                        s->req.analysers |= AN_REQ_HTTP_BODY;