[Stackless] Channel Balance Error

Bot Tiger bottiger1 at gmail.com
Fri Feb 5 02:56:37 CET 2010


I was attempting to fix the pyevent stackless nonblocking socket
module here: http://code.google.com/p/stacklessexamples/wiki/StacklessNonblockModules

I ran into a problem where the channel balance was incorrect. A
threadlet is blocked trying to send on line 215 when the channel
balance is -1. Using pdb and executing send unblocks the channel. When
weakref was removed, the problem went away.

Stakkars thought I should post on the mailing list so here it is.

http://codepad.org/TWa68adr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raw.py
Type: application/octet-stream
Size: 8168 bytes
Desc: not available
URL: <http://www.stackless.com/pipermail/stackless/attachments/20100204/6d655e6a/attachment.obj>


More information about the Stackless mailing list