From eb55cefe6393df9c44051abb3157134ff15ba770 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Tue, 19 Apr 2011 09:51:35 -0700 Subject: [PATCH] Curse my human fingers, now the boolean is the correct direction. Fixes #86. --- AUTHORS | 2 +- eventlet/convenience.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 820f84e..2e3c86b 100644 --- a/AUTHORS +++ b/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) diff --git a/eventlet/convenience.py b/eventlet/convenience.py index c80bbb4..4fc5b69 100644 --- a/eventlet/convenience.py +++ b/eventlet/convenience.py @@ -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)