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

Paul Sijben sijben at eemvalley.com
Wed Feb 28 15:58:48 CET 2007


unfortunately non-blocking UDP is a guarantee that you will lose lots of
packets.

Yet this has helped me to see the solution.

I will have three threads, (1) server  (2)  when the server acts as a
client (3) one for the worker threads, stackless is used here.


Christian Tismer wrote:
> 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
>   

-- 
Paul Sijben                    	tel: +31334566488
Eemvalley Technology       	fax: +31334557523
the Netherlands                	http://eemvalley.com    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20070228/b946c974/attachment.htm>
-------------- next part --------------
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless


More information about the Stackless mailing list