"Laszlo Nagy" <ga...@s..eus.com> wrote:

> I have a program that uses socket.bind() and socket.listen() frequently. 
> After that program stops, it is not able to bind() again for a while:
> 

 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

This does the trick for me.

- Hendrik


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to