[Stackless] can I run the scheduler in debug mode?

Christian Tismer tismer at stackless.com
Wed Feb 28 15:29:14 CET 2007


On 28.02.2007, at 15:12, Paul Sijben wrote:

> right, looks like setting a socket in blocking mode is a bad idea  
> when you also want tasklets to work.
> My code seems to be hanging on the recvfrom, and the only way to  
> get that to work is to use a blocking socket.
>
> time for a redesign and back to the ol' drawing board.
>

You should use a select loop without blocking.
You communicate with that loop through channels,
which then will correctly block client code.

ciao - chris


_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list