Curse my human fingers, now the boolean is the correct direction. Fixes #86.

This commit is contained in:
Ryan Williams
2011-04-19 09:51:35 -07:00
parent 30e0008924
commit eb55cefe63
2 changed files with 2 additions and 2 deletions

View File

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

View File

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