socket.recvfrom() & sendto()

Steve Holden sholden at
Wed May 9 01:51:27 EDT 2001

"Courageous" <jkraska1 at> wrote in message
news:35jhft8tkhe3japncq3fbbbo0eg4ip5lqa at
> >Not to pick a nit, but doesn't execution stall at select() if
> >there is no data coming in to the server.  For example: a small
> >chat server when no one happens to be chatting.
> Asyncronous event-driven programs of this sort typically solve
> this by initiating a time thread which then writes a wakeup connect
> through one of the file descriptors which select is listening on;
> the file descriptor is usually set up early for just this purpose.
This seems a little over the top when can take a fourth
argument, which lets you tell it how long to wait before returning in the
absence of I/O activity...


More information about the Python-list mailing list