Commits

Guido van Rossum  committed 0dc2fcb

SO_REUSEPORT should be SO_REUSEADDR.
I found this in a mail of two and a half years ago from Yusuf Goolamabbas.

  • Participants
  • Parent commits 808479f
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Demo/sockets/mcast.py

 	#
 	# 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))