diff options
author | Havoc Pennington <hp@redhat.com> | 2007-06-19 17:23:55 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2007-06-19 17:23:55 +0000 |
commit | ebb99420e577a0760e36ed38556aa833ace24996 (patch) | |
tree | 32c194341b104d6e9714368ef237af5ae21dc09c /bus | |
parent | 33ee5bfc5686c8deffb7349655fdb85f147897a7 (diff) |
add a comment about the match rules limit
Diffstat (limited to 'bus')
-rw-r--r-- | bus/config-parser.c | 10 |
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 */ |