Handling more than one request on a socket
brueckd at tbye.com
brueckd at tbye.com
Wed Aug 29 10:05:18 EDT 2001
On Tue, 28 Aug 2001, John Roth wrote:
> Doesn't your listen have to be in a loop? Each time it returns, the return
> from listen is a new connection socket descriptor (file descriptor). Then
> you
> spin off whatever you need to do to handle the connection - a new
> process, thread or whatever.
No! You need to call listen only once. You call accept over and over, but
not listen.
-Dave
More information about the Python-list
mailing list