Skip to content

Commit

Permalink
SO_REUSEPORT should be SO_REUSEADDR.
Browse files Browse the repository at this point in the history
I found this in a mail of two and a half years ago from Yusuf Goolamabbas.
  • Loading branch information
gvanrossum committed Jan 15, 1998
1 parent 5081b22 commit 48b805c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Demo/sockets/mcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 48b805c

Please sign in to comment.