Problem with writing fast UDP server

Krzysztof Retel Krzysztof.Retel at googlemail.com
Fri Nov 21 17:05:39 CET 2008


On Nov 21, 3:52 am, Jean-Paul Calderone <exar... at divmod.com> wrote:
>
> >Start the server before the client.
>
> If you want to try this program out on POSIX, make sure you change the
> time.clock() calls to time.time() calls instead, otherwise the results
> aren't very meaningful.
>
> I gave this a try on an AMD64 3200+ running a 32 bit Linux installation.
> Here's the results I got on the server:

Jean-Paul, thanks very much for the code snippets.
I have tried this out with number of tests. Both approaches are
working fine when I run them on the same machine.
When I run the client (twisted version) on another machine and the udp
server (non twisted) on server machine, I got some strange behaviour.
The client send 255 messages and than it cause an error: socket.error:
(11, 'Resource temporarily unavailable')

Any idea what could be wrong?




More information about the Python-list mailing list