<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
unfortunately non-blocking UDP is a guarantee that you will lose lots
of packets.<br>
<br>
Yet this has helped me to see the solution. <br>
<br>
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.<br>
<br>
<br>
Christian Tismer wrote:
<blockquote cite="mid432B2C4F-9237-4C0D-817E-BBC9B8F91073@stackless.com"
type="cite">
<pre wrap="">On 28.02.2007, at 15:12, Paul Sijben wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
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
<a class="moz-txt-link-abbreviated" href="mailto:Stackless@stackless.com">Stackless@stackless.com</a>
<a class="moz-txt-link-freetext" href="http://www.stackless.com/mailman/listinfo/stackless">http://www.stackless.com/mailman/listinfo/stackless</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Paul Sijben         tel: +31334566488
Eemvalley Technology         fax: +31334557523
the Netherlands         <a class="moz-txt-link-freetext" href="http://eemvalley.com">http://eemvalley.com</a>
</pre>
</body>
</html>