Curse my human fingers, now the boolean is the correct direction. Fixes #86.
This commit is contained in:
2
AUTHORS
2
AUTHORS
@@ -67,7 +67,7 @@ Thanks To
|
||||
* Malcolm Cleaton, patch for Event exception handling
|
||||
* Alexey Borzenkov, for finding and fixing issues with Windows error detection (#66, #69), reducing dependencies in zeromq hub (#71)
|
||||
* Anonymous, finding and fixing error in websocket chat example (#70)
|
||||
* Edward George, finding and fixing an issue in the [e]poll hubs (#74)
|
||||
* Edward George, finding and fixing an issue in the [e]poll hubs (#74), and in convenience (#86)
|
||||
* Ruijun Luo, figuring out incorrect openssl import for wrap_ssl (#73)
|
||||
* rfk, patch to get green zmq to respect noblock flag.
|
||||
* Soren Hansen, finding and fixing issue in subprocess (#77)
|
||||
|
@@ -33,7 +33,7 @@ def listen(addr, family=socket.AF_INET, backlog=50):
|
||||
:return: The listening green socket object.
|
||||
"""
|
||||
sock = socket.socket(family, socket.SOCK_STREAM)
|
||||
if sys.platform[:3]=="win":
|
||||
if sys.platform[:3] != "win":
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
sock.bind(addr)
|
||||
sock.listen(backlog)
|
||||
|
Reference in New Issue
Block a user