dbus_connection_send_with_reply_and_block() timed out?

Havoc Pennington hp at redhat.com
Mon Jun 25 07:02:53 PDT 2007


Hi,

Murray Cumming wrote:
> When calling dbus_connection_send_with_reply_and_block() with a timeout,
> is there any way to detect that a timeout occurred?
> 

You will get an error reply. (In general you are guaranteed to get a 
reply when using the with_reply() variants - either a real reply or an 
error from the remote app or an error from the bus or a 
locally-synthesized disconnect/timeout error.)

With plain dbus_connection_send() there is no locally-synthesized 
anything, so no guaranteed reply.

I'm not sure whether you can distinguish the local timeout error from 
one that comes from the bus, but I doubt it makes a difference (?)

Havoc



More information about the dbus mailing list