mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02: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
|
9.1. Trace
|
||||||
----------
|
----------
|
||||||
|
|
||||||
filter trace [name <name>] [random-parsing] [random-forwarding] [hexdump]
|
filter trace [name <name>] [random-forwarding] [hexdump]
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
<name> is an arbitrary name that will be reported in
|
<name> is an arbitrary name that will be reported in
|
||||||
messages. If no name is provided, "TRACE" is used.
|
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
|
<random-forwarding> enables the random forwarding of parsed data. By
|
||||||
default, this filter forwards all previously parsed
|
default, this filter forwards all previously parsed
|
||||||
|
@ -32,7 +32,6 @@ struct flt_ops trace_ops;
|
|||||||
struct trace_config {
|
struct trace_config {
|
||||||
struct proxy *proxy;
|
struct proxy *proxy;
|
||||||
char *name;
|
char *name;
|
||||||
int rand_parsing;
|
|
||||||
int rand_forwarding;
|
int rand_forwarding;
|
||||||
int hexdump;
|
int hexdump;
|
||||||
};
|
};
|
||||||
@ -188,8 +187,7 @@ trace_init(struct proxy *px, struct flt_conf *fconf)
|
|||||||
fconf->flags |= FLT_CFG_FL_HTX;
|
fconf->flags |= FLT_CFG_FL_HTX;
|
||||||
fconf->conf = conf;
|
fconf->conf = conf;
|
||||||
|
|
||||||
FLT_TRACE(conf, "filter initialized [read random=%s - fwd random=%s - hexdump=%s]",
|
FLT_TRACE(conf, "filter initialized [fwd random=%s - hexdump=%s]",
|
||||||
(conf->rand_parsing ? "true" : "false"),
|
|
||||||
(conf->rand_forwarding ? "true" : "false"),
|
(conf->rand_forwarding ? "true" : "false"),
|
||||||
(conf->hexdump ? "true" : "false"));
|
(conf->hexdump ? "true" : "false"));
|
||||||
return 0;
|
return 0;
|
||||||
@ -633,7 +631,7 @@ parse_trace_flt(char **args, int *cur_arg, struct proxy *px,
|
|||||||
pos++;
|
pos++;
|
||||||
}
|
}
|
||||||
else if (!strcmp(args[pos], "random-parsing"))
|
else if (!strcmp(args[pos], "random-parsing"))
|
||||||
conf->rand_parsing = 1;
|
continue; // ignore
|
||||||
else if (!strcmp(args[pos], "random-forwarding"))
|
else if (!strcmp(args[pos], "random-forwarding"))
|
||||||
conf->rand_forwarding = 1;
|
conf->rand_forwarding = 1;
|
||||||
else if (!strcmp(args[pos], "hexdump"))
|
else if (!strcmp(args[pos], "hexdump"))
|
||||||
|
Loading…
Reference in New Issue
Block a user