Received: from [131.252.208.82] (helo=gabe.freedesktop.org)
	by mx25.web.de with esmtp (WEB.DE 4.104 #268)
	id 1DLg71-00086U-00; Wed, 13 Apr 2005 13:32:51 +0200
Received: from gabe.freedesktop.org (localhost.localdomain [127.0.0.1])
	by gabe.freedesktop.org (Postfix) with ESMTP id 19C029EA1A;
	Wed, 13 Apr 2005 04:32:50 -0700 (PDT)
X-Original-To: hal@lists.freedesktop.org
Delivered-To: hal@lists.freedesktop.org
Received: from box79162.elkhouse.de (box79162.elkhouse.de [213.9.79.162])
	by gabe.freedesktop.org (Postfix) with ESMTP id 79C8D9E7F2
	for <hal@lists.freedesktop.org>; Wed, 13 Apr 2005 04:32:47 -0700 (PDT)
Received: from martin by box79162.elkhouse.de with local (Exim 4.50)
	id 1DLg6w-00079W-Ns
	for hal@lists.freedesktop.org; Wed, 13 Apr 2005 13:32:46 +0200
Date: Wed, 13 Apr 2005 13:32:46 +0200
From: Martin Pitt <martin@piware.de>
To: hal@lists.freedesktop.org
Message-ID: <20050413113246.GB27342@box79162.elkhouse.de>
Mail-Followup-To: hal@lists.freedesktop.org
Mime-Version: 1.0
User-Agent: Mutt/1.5.6+20040907i
Subject: [patch] increase default rules per connection limit
X-BeenThere: hal@lists.freedesktop.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Hardware Abstraction Layer technical discussion
	<hal.lists.freedesktop.org>
List-Unsubscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=unsubscribe>
List-Archive: <http://lists.freedesktop.org/archives/hal>
List-Post: <mailto:hal@lists.freedesktop.org>
List-Help: <mailto:hal-request@lists.freedesktop.org?subject=help>
List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=subscribe>
Content-Type: multipart/mixed;
  boundary="===============0463576754=="
Mime-version: 1.0
Errors-To: hal-bounces@lists.freedesktop.org
Sender: hal-bounces@lists.freedesktop.org
Status: RO
X-Status: ORC
X-KMail-EncryptionState: N
X-KMail-SignatureState: P
X-KMail-MDN-Sent:  
X-UID: 0


--===============0463576754==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="LpQ9ahxlCli8rRTG"
Content-Disposition: inline


--LpQ9ahxlCli8rRTG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi!

Some users had problems with the default rule limit (see [1]):

$ hal-device-manager
Traceback (most recent call last):
  File "/usr/bin/hal-device-manager", line 18, in ?
    DeviceManager()
  File "/usr/share/hal/device-manager/DeviceManager.py", line 88, in __init=
__
    self.add_device_signal_recv (name);
  File "/usr/share/hal/device-manager/DeviceManager.py", line 99, in
add_device_signal_recv
    udi)
  File "/usr/lib/python2.4/site-packages/dbus.py", line 93, in add_signal_r=
eceiver
    dbus_bindings.bus_add_match(self._connection, match_rule)
  File "dbus_bindings.pyx", line 1516, in dbus_bindings.bus_add_match
dbus_bindings.DBusException: Connection ":1.17" is not allowed to add more =
match
rules (increase limits in configuration file if required)

It helped to increase this limit to an ample value:=20

diff -ruN hal-0.5.0-old/hal.conf.in hal-0.5.0/hal.conf.in
--- hal-0.5.0-old/hal.conf.in   2004-09-12 11:57:59.000000000 +0200
+++ hal-0.5.0/hal.conf.in       2005-04-13 12:11:37.024496368 +0200
@@ -25,5 +25,7 @@
            receive_sender=3D"org.freedesktop.Hal"/>
   </policy>

+  <limit name=3D"max_match_rules_per_connection">512</limit>
+
 </busconfig>


Since this certainly affects other people, too, do you consider
adopting this into the upstream version?

Thanks,

Martin

[1] https://bugzilla.ubuntu.com/show_bug.cgi?id=3D7188

--=20
Martin Pitt               http://www.piware.de
Ubuntu Developer    http://www.ubuntulinux.org
Debian Developer         http://www.debian.org

--LpQ9ahxlCli8rRTG
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCXQNeDecnbV4Fd/IRAlzqAJ9p9ihfqne5ksmVKOLgY6OjNc57TQCfV/5O
yoXv3z3KLIye3sSIsBGv1Kg=
=yrhd
-----END PGP SIGNATURE-----

--LpQ9ahxlCli8rRTG--

--===============0463576754==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
hal mailing list
hal@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal

--===============0463576754==--
