DBusGProxy issues

raveendranath.kondrakunta at wipro.com raveendranath.kondrakunta at wipro.com
Tue May 11 21:40:15 PDT 2010


Hi,
 
It would be glad if someone can help me regarding the following issue. I
use dbus-glib bindings so that I can publish a Gobject on the bus.
 
I've two processes(A and B) communcating over the session bus. Process A
is a daemon kind of application to satify different needs. Process B is
a kind of application which comes in and goes out on a need basis.
Generally, process A makes remote method calls on process B using
DBusGProxy. Both the processes publish its own glib gobjects on the bus.
 
I've an issue with the following use case.
 
1. Process A makes a remote method call on Process B using Proxy, with
some time out of 45 sec.
2. In some cases, Process B dies or exits before it could respond with a
method return. (This can't be eliminated, this is as per design).
 
 
So, what happens is that Process A waits for the timeout of 45 secs and
then returns a error message. But, the expectation is that Process A
should come out the call immediately, as Process B died. 
 
What can be wrong here?
 
I use dbus_g_bus_get to get a connection to a session bus, and create a
DBusGProxy to publish glib gobjects on the bus. And more thing is that I
never clean up the connection acquired by dbus_g_bus_get, as it is a
shared connection. I tried cleaning up the Proxy instance on the Process
B end, but it caused Process A to exit(which should never be the case
for me.)
 
Thanks,
Ravee
 

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100512/f020ecd6/attachment.html>


More information about the dbus mailing list