]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: flt-trace: Remove unused random-parsing option
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Nov 2020 09:43:26 +0000 (10:43 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Nov 2020 10:34:30 +0000 (11:34 +0100)
This option was only used by the legacy HTTP mode. In HTX, it is not used. So it
can be removed.

doc/configuration.txt
src/flt_trace.c

index 2a7a9a508b1ffe197d4174729f3b714a46ef397d..3ae4d5c4156741ee8ae4d5670c86e23619cdf15d 100644 (file)
@@ -20266,16 +20266,12 @@ See also : "filter"
 9.1. Trace
 ----------
 
-filter trace [name <name>] [random-parsing] [random-forwarding] [hexdump]
+filter trace [name <name>] [random-forwarding] [hexdump]
 
   Arguments:
     <name>               is an arbitrary name that will be reported in
                          messages. If no name is provided, "TRACE" is used.
 
-    <random-parsing>     enables the random parsing of data exchanged between
-                         the client and the server. By default, this filter
-                         parses all available data. With this parameter, it
-                         only parses a random amount of the available data.
 
     <random-forwarding>  enables the random forwarding of parsed data. By
                          default, this filter forwards all previously parsed
index 386de41d2912c5d61d95f850929eaba1247afb84..4b27cd541c7cf0e2514355e3f3332d3113a473c6 100644 (file)
@@ -32,7 +32,6 @@ struct flt_ops trace_ops;
 struct trace_config {
        struct proxy *proxy;
        char         *name;
-       int           rand_parsing;
        int           rand_forwarding;
        int           hexdump;
 };
@@ -188,8 +187,7 @@ trace_init(struct proxy *px, struct flt_conf *fconf)
        fconf->flags |= FLT_CFG_FL_HTX;
        fconf->conf = conf;
 
-       FLT_TRACE(conf, "filter initialized [read random=%s - fwd random=%s - hexdump=%s]",
-             (conf->rand_parsing ? "true" : "false"),
+       FLT_TRACE(conf, "filter initialized [fwd random=%s - hexdump=%s]",
              (conf->rand_forwarding ? "true" : "false"),
              (conf->hexdump ? "true" : "false"));
        return 0;
@@ -633,7 +631,7 @@ parse_trace_flt(char **args, int *cur_arg, struct proxy *px,
                                pos++;
                        }
                        else if (!strcmp(args[pos], "random-parsing"))
-                               conf->rand_parsing = 1;
+                               continue; // ignore
                        else if (!strcmp(args[pos], "random-forwarding"))
                                conf->rand_forwarding = 1;
                        else if (!strcmp(args[pos], "hexdump"))