dbus connection abort

Andreas Volz lists at brachttal.net
Thu Mar 10 04:33:53 PST 2011


I'm maintaining the dbus-c++ bindings for dbus and now found a problem
while using it.

Sometimes the connections is down if I send fast and multiple method
calls to dbus. As test I've two methods in a different interface and
send them from a GUI fast with two buttons. After some time (~100 send
commands or so) my bindings get a false return from
dbus_connection_get_is_connected() and so aborts the connection.

Before I show you more code and we get deeper into details which
situation could you imagine that the connection is down only from
sending methods to dbus?

Or do I've a race condition because I ask
dbus_connection_get_is_connected() at the wrong time? This code is
called from inside my ecore mainloop integration.


Technical Blog <http://andreasvolz.wordpress.com/>

More information about the dbus mailing list