]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: proxy: Remove the flag PR_O2_USE_HTX
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Jul 2019 13:13:41 +0000 (15:13 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:18:27 +0000 (09:18 +0200)
This flag is now unused. So we can safely remove it.

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

index ca24dbfe0c652d481921e71b277131a6010193cf..55afed771267c1c2ba0d0ae743a892e8f4997389 100644 (file)
@@ -152,7 +152,7 @@ enum PR_SRV_STATE_FILE {
 #define PR_O2_SRC_ADDR 0x00100000      /* get the source ip and port for logs */
 
 #define PR_O2_FAKE_KA   0x00200000      /* pretend we do keep-alive with server eventhough we close */
-#define PR_O2_USE_HTX   0x00400000      /* use the HTX representation for the HTTP protocol */
+/* unused : 0x00400000 */
 
 #define PR_O2_EXP_NONE  0x00000000      /* http-check : no expect rule */
 #define PR_O2_EXP_STS   0x00800000      /* http-check expect status */
index 13c1453a555c908bec8ccd76df3f35379a3bdbe1..3382811411b77a0419e63a523c6a63e0156b21ef 100644 (file)
@@ -680,9 +680,6 @@ static int http_htx_init(void)
        int err_code = 0;
 
        for (px = proxies_list; px; px = px->next) {
-               if (!(px->options2 & PR_O2_USE_HTX))
-                       continue;
-
                for (rc = 0; rc < HTTP_ERR_SIZE; rc++) {
                        if (!b_data(&px->errmsg[rc]))
                                continue;
index 2a8f87bcc37ddefe03b057e77228e49a3cf15f1b..a49ca6638b64474c8990656b95f7397c0c389f13 100644 (file)
@@ -895,9 +895,6 @@ void init_new_proxy(struct proxy *p)
        /* initial uuid is unassigned (-1) */
        p->uuid = -1;
 
-       /* HTX is the default mode, for HTTP and TCP */
-       p->options2 |= PR_O2_USE_HTX;
-
        /* Default to only allow L4 retries */
        p->retry_type = PR_RE_CONN_FAILED;