]> granicus.if.org Git - python/commitdiff
SO_REUSEPORT should be SO_REUSEADDR.
authorGuido van Rossum <guido@python.org>
Thu, 15 Jan 1998 22:36:13 +0000 (22:36 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 15 Jan 1998 22:36:13 +0000 (22:36 +0000)
I found this in a mail of two and a half years ago from Yusuf Goolamabbas.

Demo/sockets/mcast.py

index 4cd870657bce78eb4f23f0b274464d1ac3f859a5..fe4aacbba3cd71555c0eae66b2293c23e7d2b391 100755 (executable)
@@ -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))