
Jan. 19, 2014
5:54 p.m.
On 19 Jan, 09:27 pm, twisted-python@2xlp.com wrote:
Thanks for the offer to help.
i'm not sure of the specifics on how / why this manifests, but if I just use runInteraction and bypass using `deferToThread`, everything works out perfect.
To intentionally slightly misinterpret you, the specifics might not be as interesting in this case as this general principle: Twisted APIs are not safe to call except from the thread the reactor is running in. There are exceptions, most notably `reactor.callFromThread`, but they are *extremely* rare. Jean-Paul