Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

skip EXCLUSIVEADDRUSE on Windows

  • Loading branch information...
commit 8e2f3b85efa092dbaab161c2d034940a906eb742 1 parent 4e152b5
@minrk minrk authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 tornado/netutil.py
View
4 tornado/netutil.py
@@ -252,9 +252,7 @@ def bind_sockets(port, address=None, family=socket.AF_UNSPEC, backlog=128):
af, socktype, proto, canonname, sockaddr = res
sock = socket.socket(af, socktype, proto)
set_close_exec(sock.fileno())
- if os.name == 'nt':
- sock.setsockopt(socket.SOL_SOCKET, socket.SO_EXCLUSIVEADDRUSE, 1)
- else:
+ if os.name != 'nt':
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
if af == socket.AF_INET6:
# On linux, ipv6 sockets accept ipv4 too by default,
Please sign in to comment.
Something went wrong with that request. Please try again.