dbus-daemon closing connection?
Krishna R
sith.list at gmail.com
Thu Apr 12 16:19:44 PDT 2007
Thiago, Thanks for the reply, coupla dumb q.
1. Process A sends a signal to an interface X which is routed thru dbus
daemon and process B recvs it in that interface X, if dbus-daemon closes
socket with B, it means that B has sent an invalid message to the daemon
correct? Or does it happen if A sends an invalid message to the interface X?
I am asking this because B does nothing more than recving the message and
setting the result as handled.
2. Since DBUS_VERBOSE etc seems to change the timing, i may have add prints
in the code where the daemon detects invalid signal and closes the
connection. Can you pls tell me where i should look for this part of the
code? searching for connection_close or disconnect or invalid message, hits
too many files. If you dont know from the top of your head, its ok, i will
figure it out.
Thanks!
On 4/11/07, Thiago Macieira <thiago at kde.org> wrote:
>
> Krishna R wrote:
> >Further probing lead to disconnect signal being the cause of
> > do_io_error() in dbus-transport-socket.c, it was called because
> > do_reading() which reads from the socket and gets bytes_read = 0. That
> > means the socket was closed on the other end?
>
> Yes.
>
> >The question i have is why is the dbus-daemon closing the socket? Or is
> > it?
>
> It is and it does so because it received an invalid message. If you strace
> the daemon or if you run it in debug mode, it should say why it did that.
>
> >dbus-daemon, A and B are started one after another at boot in the
> >foreground. Is there some problem where the session bus is not fully
> >initialized? That may not be because atleast one signal from A reaches
> > B.
>
> I don't think so.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20070412/9a13f430/attachment.html
More information about the dbus
mailing list