From: Guido van Rossum Date: Thu, 15 Jan 1998 22:36:13 +0000 (+0000) Subject: SO_REUSEPORT should be SO_REUSEADDR. X-Git-Tag: v1.5.1~953 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48b805c07c18e56e06d2f30a83623072c2e4c5fd;p=thirdparty%2FPython%2Fcpython.git SO_REUSEPORT should be SO_REUSEADDR. I found this in a mail of two and a half years ago from Yusuf Goolamabbas. --- diff --git a/Demo/sockets/mcast.py b/Demo/sockets/mcast.py index 4cd870657bce..fe4aacbba3cd 100755 --- a/Demo/sockets/mcast.py +++ b/Demo/sockets/mcast.py @@ -67,7 +67,7 @@ def openmcastsock(group, port): # # Allow multiple copies of this program on one machine # (not strictly needed) - s.setsockopt(SOL_SOCKET, SO_REUSEPORT, 1) + s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) # # Bind it to the port s.bind(('', port))