send_with_block_and_reply fail

Olivier Andrieu oliv__a at users.sourceforge.net
Wed Jun 16 01:14:37 PDT 2004


Hi,

 Johan FISCHER [Wed, 16 Jun 2004]:
 > So, it seems the client receive a reply message serial 32, insert
 > it in the incoming queue, delete it (no filter installed) and then
 > the dbus_send_with_rpely_and_block start listening for the reply.
 > 
 > Any idea ?

Could you try this patch ?

-- 
   Olivier
-------------- next part --------------
Index: dbus/dbus-connection.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-connection.c,v
retrieving revision 1.80
diff -u -r1.80 dbus-connection.c
--- dbus/dbus-connection.c	5 Jun 2004 16:32:00 -0000	1.80
+++ dbus/dbus-connection.c	16 Jun 2004 08:10:59 -0000
@@ -1881,9 +1881,10 @@
    * gets the message before we do?
    */
   /* always block at least once as we know we don't have the reply yet */
+  /* actually no, maybe we do: dbus_connection_flush has the 
+     DBUS_ITERATION_DO_READING flag */
   _dbus_connection_do_iteration (connection,
-                                 DBUS_ITERATION_DO_READING |
-                                 DBUS_ITERATION_BLOCK,
+                                 DBUS_ITERATION_DO_READING,
                                  timeout_milliseconds);
 
  recheck_status:


More information about the dbus mailing list