[Twisted-Python] pyactivemq interfering with Twisted?

Itamar Shtull-Trauring itamar at itamarst.org
Tue Mar 18 09:16:11 EDT 2008

On Tue, 2008-03-18 at 20:04 +0800, Brian Baquiran wrote:

> Could the part of pyactivemq (or ActiveMQ-CPP) that handles asynchronous 
> consumption of messages be interfering somehow with Twisted's event loop 
> and causing this problem?

Quite possibly; if the API you're calling is blocking then Twisted's
event loop won't be able to run. If that is the case, either figure out
if you can integrate the library with Twisted's event loop, or use
twisted.internet.threads.deferToThread or something similar to call the
blocking API.

More information about the Twisted-Python mailing list