summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bus/config-parser.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/bus/config-parser.c b/bus/config-parser.c
index 7b6a368c..d557a91c 100644
--- a/bus/config-parser.c
+++ b/bus/config-parser.c
@@ -487,7 +487,15 @@ bus_config_parser_new (const DBusString *basedir,
parser->limits.max_pending_activations = 512;
parser->limits.max_services_per_connection = 512;
-
+
+ /* For this one, keep in mind that it isn't only the memory used
+ * by the match rules, but slowdown from linearly walking a big
+ * list of them. A client adding more than this is almost
+ * certainly a bad idea for that reason, and should change to a
+ * smaller number of wider-net match rules - getting every last
+ * message to the bus is probably better than having a thousand
+ * match rules.
+ */
parser->limits.max_match_rules_per_connection = 512;
parser->limits.reply_timeout = 5 * 60 * 1000; /* 5 minutes */