[python] timeout during async call

René 'Necoro' Neumann lists at necoro.eu
Wed Nov 14 07:03:53 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am trying to call a function asynchronous - but after a few moments I get:

DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a
reply. Possible causes include: the remote application did not send a
reply, the message bus security policy blocked the reply, the reply
timeout expired, or the network connection was broken.

The function is defined as:
def update_world (self, newuse = False, deep = False):
    ret = []
    e = Event()
			
    def wait (list):
        ret.extend([(CatapultPackage(x), CatapultPackage(y)) for x,y in
list])
        e.set()

    def error (ex):
        e.set()
        raise ex
		
    self.proxy.update_world(newuse, deep, {}, reply_handler = wait,
error_handler = error)
    e.wait()
    return ret

Yes - it is waiting for the reply to be sent, as this function has to
return in sync. - But the exception is thrown by DBus. How can an async
call time out?

Regards,
Necoro

P.S: If it matters: The method is implemented in an asnychronous way on
the server site too (i.e. it forks of in a thread and returns immediately)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHOw5Y4UOg/zhYFuARAm5/AKCCaBf+LcNdUVy04+bX8hFgVJhUHwCfVJhu
vt3euODtBA9WU3gMIRUIkGw=
=Ofre
-----END PGP SIGNATURE-----


More information about the dbus mailing list