-
-
Save anonymous/80e8fd7fe62d016d7214 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /usr/lib/python2.6/site-packages/circus/util.py.orig 2014-02-12 15:23:22.000000000 +0000 | |
+++ /usr/lib/python2.6/site-packages/circus/util.py 2014-02-12 15:24:43.000000000 +0000 | |
@@ -726,7 +726,10 @@ | |
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
# Some platform exposes SO_REUSEPORT | |
if hasattr(socket, 'SO_REUSEPORT'): | |
- sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) | |
+ try: | |
+ sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) | |
+ except: | |
+ pass | |
# Put packet ttl to max | |
sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 255) | |
# Register socket to multicast group |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment