[Stackless] stackless socket, curiouser and curiouser

Andrew Dalke dalke at dalkescientific.com
Tue Feb 27 17:25:16 CET 2007

On Feb 27, 2007, at 6:33 AM, Paul Sijben wrote:
> StopIteration: the main tasklet is sending without a receiver  
> available.
> No packet is sent btw. It does this with s.setblocking(1) and  
> without. I got the error above when I pressed ctrl-C.
> This is the right way to set up a regular socket, but apparently  
> not a stacklessocket. Did I do something wrong or did I trigger a  
> bug in stacklesssocket?

The main tasklet is special, for reasons I don't understand.  It
does not let you block it through a channel send.  Try running the
same code in a tasklet.

That is only a guess .. I haven't tried it out here myself.

				dalke at dalkescientific.com

Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list