[Twisted-Python] Twisted-Python Digest, Vol 90, Issue 16

Glyph Lefkowitz glyph at twistedmatrix.com
Mon Sep 19 13:49:56 MDT 2011


On Sep 19, 2011, at 3:40 PM, Fabian Rothfuchs wrote:

> That’s a tremendous advice!
> Indeed I was directly calling connectTCP() - I changed it to do like         
> 
> reactor.callFromThread(reactor.connectTCP, host, port, factory, timeout=5)
> 
> Thanks!

No problem!  I'm glad I caught this before it caused you serious trouble.

Tell your friends: threads are bad!  callFromThread is your best and only defense against the Dark Arts! :)

-glyph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20110919/75dc949f/attachment.html>


More information about the Twisted-Python mailing list