Simple UDP server

Nick Craig-Wood nick at
Thu Sep 11 02:36:32 CEST 2008

Tzury Bar Yochay <Afro.Systems at> wrote:
>  I am looking for the right way to write a small and simple UDP server.
>  I am wondering between Forking, Threading (found at
>  and the one describes at the snippet below.
>  Can you tell me the advantages and disadvantages of each
>  Would the one below will be capable of holding 30 concurrent
>  connections?
>  I have no intention of using Twisted or alike since I am looking for
>  making it as lightweight as possible

For UDP I wouldn't thread or, fork, I'd use select and run

Actually if I really had to do this I'd use twisted.  Right tool for
the job!

Nick Craig-Wood <nick at> --

More information about the Python-list mailing list