mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-11 00:09:42 +00:00
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.
This commit is contained in:
parent
63c69a9b4e
commit
c41d8bd65a
@ -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
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user