[Twisted-Python] a problem about iocp and callInThread

Itamar Turner-Trauring itamar at itamarst.org
Sun May 15 12:21:19 EDT 2011


> I want to know what makes callInThread so special with iocpreactor?

You're calling a reactor method from a thread; that is a bug, the reactor
is not thread safe. As a result, different reactors may fail differently.
Use reactor.callFromThread to call reactor methods from a thread.




More information about the Twisted-Python mailing list