[Tutor] Question about network server in python

Kent Johnson kent37 at tds.net
Thu Jun 15 16:45:38 CEST 2006


Peter Jessop wrote:
> I think the problem here is the 'break' statement.
> Does it not put you outside the while loop whereas in order to keep
> the server socket open you need it to loop forever.
> 
> I also think that the s.accept should be inside the while loop.

There are two loops, I think you missed the outer loop.

Kent


More information about the Tutor mailing list