[Twisted-Python] Strange blocking in twisted + quickfix service

Jean-Paul Calderone exarkun at divmod.com
Wed Nov 15 13:32:59 MST 2006


On Wed, 15 Nov 2006 14:27:29 -0500, Robert Parrott <robparrott at gmail.com> wrote:
>Hi Folks,
>
>I'm trying to wrap the quickfix engine (www.quickfix.org) 

ITYM www.quickfixengine.org :)

>with a
>twisted service, in order to create a standalone daemon that will
>respond to RPC-like commands (such as "start", "stop", "request
>quote", etc.) However, I'm finding some odd blocking issues that I
>need to resolve.
>
>Basically, the twisted service works fine until I start the quickfix
>engine (which runs, I believe in a separate thread). Beforehand, calls
>to the twisted protocol class I've created invoke methods in the
>service, and things don't block. When the quickfix engine is started,
>it runs fine, but the main thread, in which the twisted "wrapper"
>application runs, seems to block in funny ways.

Does QuickFIX release the GIL?  If not, even if it runs in a separate
thread, Twisted will be blocked any time it spends a long time doing
anything.

Jean-Paul




More information about the Twisted-Python mailing list