[Twisted-Python] Deadlocks when launching processes - how to investigate?

Glyph Lefkowitz glyph at twistedmatrix.com
Tue Feb 18 11:53:58 MST 2014


On Feb 15, 2014, at 5:32 PM, exarkun at twistedmatrix.com wrote:

> On 15 Feb, 07:58 pm, glyph at twistedmatrix.com wrote:
>> 
>> The one thing that confused me was that the sample program appeared to be running the program only once a second, and waiting for it to complete before running it again.
> 
> I think it's more like 81 processes once a second and *not* waiting for them to complete before starting over.  Notice the lack of yields in key places.  I suspect inlineCallbacks has gradually eaten out the part of your brain that recognizes that keyword. ;)

Well, I was skimming, and I saw the 'yield's in the things that *were* decorated with @inlineCallbacks; in this case it was the "plain" code that tricked me :-).

-g

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4124 bytes
Desc: not available
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20140218/cfce427e/attachment.bin>


More information about the Twisted-Python mailing list