unconfigurable limits

Olivier Andrieu oliv__a at users.sourceforge.net
Tue Aug 24 13:14:06 PDT 2004


Hi,

 Kay Sievers [Tue, 17 Aug 2004]:
 > On Tue, 2004-08-17 at 00:17 -0400, Havoc Pennington wrote:
 > > It is certainly configurable, btw, afaik at least. See man
 > > page. You can use this to experiment and see how high the limit
 > > needs to be ;-)
 > 
 > I can't find it in the code.

Yeah, this one seems to be missing, just an oversight I guess.

-- 
   Olivier
-------------- next part --------------
Index: bus/config-parser.c
===================================================================
RCS file: /cvs/dbus/dbus/bus/config-parser.c,v
retrieving revision 1.35
diff -u -r1.35 config-parser.c
--- bus/config-parser.c	23 Aug 2004 16:09:53 -0000	1.35
+++ bus/config-parser.c	24 Aug 2004 20:07:28 -0000
@@ -1640,6 +1640,12 @@
       must_be_int = TRUE;
       parser->limits.max_services_per_connection = value;
     }
+  else if (strcmp (name, "max_match_rules_per_connection") == 0)
+    {
+      must_be_positive = TRUE;
+      must_be_int = TRUE;
+      parser->limits.max_match_rules_per_connection = value;
+    }
   else if (strcmp (name, "max_replies_per_connection") == 0)
     {
       must_be_positive = TRUE;
Index: bus/dbus-daemon-1.1.in
===================================================================
RCS file: /cvs/dbus/dbus/bus/dbus-daemon-1.1.in,v
retrieving revision 1.8
diff -u -r1.8 dbus-daemon-1.1.in
--- bus/dbus-daemon-1.1.in	30 Jul 2004 05:59:34 -0000	1.8
+++ bus/dbus-daemon-1.1.in	24 Aug 2004 20:07:28 -0000
@@ -280,6 +280,8 @@
                                      progress at the same time
       "max_services_per_connection": max number of services a single 
                                      connection can own
+      "max_match_rules_per_connection": max number of match rules for a single 
+                                        connection
       "max_replies_per_connection" : max number of pending method 
                                      replies per connection
                                      (number of calls-in-progress)
Index: test/data/valid-config-files/many-rules.conf
===================================================================
RCS file: /cvs/dbus/dbus/test/data/valid-config-files/many-rules.conf,v
retrieving revision 1.2
diff -u -r1.2 many-rules.conf
--- test/data/valid-config-files/many-rules.conf	30 Sep 2003 02:33:05 -0000	1.2
+++ test/data/valid-config-files/many-rules.conf	24 Aug 2004 20:07:28 -0000
@@ -53,5 +53,6 @@
   <limit name="max_connections_per_user">64</limit>
   <limit name="max_pending_activations">64</limit>
   <limit name="max_services_per_connection">256</limit>
+  <limit name="max_match_rules_per_connection">512</limit>
                                    
 </busconfig>


More information about the dbus mailing list