message lost if dbus_connection_close() follows send() too quickly

Colin Walters walters at verbum.org
Fri Oct 31 16:06:30 PDT 2008


On Fri, Oct 31, 2008 at 5:55 PM,  <dbus at eehouse.org> wrote:
> I'm working on a bug in a client/server pair communicating over dbus
> via dbus-daemon.  The server sends periodic messages to the client
> using dbus_connection_send().  The client eventually sends one message
> and quits, calling dbus_connection_send(), dbus_connection_flush(),
> and then dbus_connection_close() before exit().  Expected behavior is
> that the server still receives the message, and in fact that's what we
> see 99% of the time, but occasionally it does not.

There's a bug and previous discussion about this; I don't have links
handy, but basically to work around this issue what you need to do for
now is wait for the reply to all messages sent before closing the
connection.


More information about the dbus mailing list