mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
SO_REUSEPORT should be SO_REUSEADDR.
I found this in a mail of two and a half years ago from Yusuf Goolamabbas.
This commit is contained in:
parent
5081b227f1
commit
48b805c07c
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ def openmcastsock(group, port):
|
||||||
#
|
#
|
||||||
# Allow multiple copies of this program on one machine
|
# Allow multiple copies of this program on one machine
|
||||||
# (not strictly needed)
|
# (not strictly needed)
|
||||||
s.setsockopt(SOL_SOCKET, SO_REUSEPORT, 1)
|
s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
|
||||||
#
|
#
|
||||||
# Bind it to the port
|
# Bind it to the port
|
||||||
s.bind(('', port))
|
s.bind(('', port))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue