From c41d8bd65aac1fc3525759280cc6d9b511d1dc93 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 17 Nov 2020 10:43:26 +0100 Subject: [PATCH] CLEANUP: flt-trace: Remove unused random-parsing option This option was only used by the legacy HTTP mode. In HTX, it is not used. So it can be removed. --- doc/configuration.txt | 6 +----- src/flt_trace.c | 6 ++---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 2a7a9a508..3ae4d5c41 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -20266,16 +20266,12 @@ See also : "filter" 9.1. Trace ---------- -filter trace [name ] [random-parsing] [random-forwarding] [hexdump] +filter trace [name ] [random-forwarding] [hexdump] Arguments: is an arbitrary name that will be reported in messages. If no name is provided, "TRACE" is used. - 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. enables the random forwarding of parsed data. By default, this filter forwards all previously parsed diff --git a/src/flt_trace.c b/src/flt_trace.c index 386de41d2..4b27cd541 100644 --- a/src/flt_trace.c +++ b/src/flt_trace.c @@ -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"))