[docs] Socket server example fails on second and sucessive runs. Please set SO_REUSEADDR flag.
sandro.tosi at gmail.com
Thu Aug 18 23:47:19 CEST 2011
On Tue, Apr 19, 2011 at 07:25, John Hall <johnhall2.0 at gmail.com> wrote:
> The sockets example runs once because but fails on successive runs because a
> socket option flag that allows the port number to be readily reused again
> after the program closed is not set.
> s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
thanks for your input: I've just filed
http://bugs.python.org/issue12781 to get this fixed.
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
More information about the docs