plugin: sftp transport
Aaron Bentley
aaron.bentley at utoronto.ca
Thu Oct 20 05:59:03 BST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John A Meinel wrote:
> My understanding is that the basic cause of this is the
> "make_synchronous" function call. It causes problems if you call it from
> inside itself. Is that correct?
No. async code cannot call make_synchronous, directly or indirectly.
The problem is that make_synchronous doesn't just process the thing you
want to make synchronous. Other deferreds can be handled, leading to
concurrency issues.
If there were a way to get the reactor to just process the one deferred
we care about, make_synchronous would be safe, and I'd feel a lot better
about using twisted.
> Is there a way to write a function that does something similar, without
> destroying everything else?
> Or is the real problem the Deferred design?
Seems to be twisted design.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDVyQX0F+nu1YWqI0RAt+FAKCB3SsHHNLZAMjfLZRA4QIOhNSUkwCfYAWu
6PnBFFkvJvzWxLnb4mhHsV8=
=BTax
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list