summaryrefslogtreecommitdiffstats
path: root/Demo/sockets
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-01-15 22:36:13 (GMT)
committerGuido van Rossum <guido@python.org>1998-01-15 22:36:13 (GMT)
commit48b805c07c18e56e06d2f30a83623072c2e4c5fd (patch)
tree181bd5c1e3237226889aeb19c6619d4f93dfcabd /Demo/sockets
parent5081b227f1283ba480ab4d8bea17013a3b7537d2 (diff)
downloadcpython-48b805c07c18e56e06d2f30a83623072c2e4c5fd.zip
cpython-48b805c07c18e56e06d2f30a83623072c2e4c5fd.tar.gz
cpython-48b805c07c18e56e06d2f30a83623072c2e4c5fd.tar.bz2
SO_REUSEPORT should be SO_REUSEADDR.
I found this in a mail of two and a half years ago from Yusuf Goolamabbas.
Diffstat (limited to 'Demo/sockets')
-rwxr-xr-xDemo/sockets/mcast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/mcast.py b/Demo/sockets/mcast.py
index 4cd8706..fe4aacb 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))