[svn r37446] don't try this on windows

--HG--
branch : trunk
This commit is contained in:
hpk 2007-01-27 20:22:23 +01:00
parent 780e715395
commit 8f540fe7c6
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ def bind_and_listen(hostport):
old = fcntl.fcntl(serversock.fileno(), fcntl.F_GETFD) old = fcntl.fcntl(serversock.fileno(), fcntl.F_GETFD)
fcntl.fcntl(serversock.fileno(), fcntl.F_SETFD, old | fcntl.FD_CLOEXEC) fcntl.fcntl(serversock.fileno(), fcntl.F_SETFD, old | fcntl.FD_CLOEXEC)
# allow the address to be re-used in a reasonable amount of time # allow the address to be re-used in a reasonable amount of time
#if os.name == 'posix' and sys.platform != 'cygwin': if os.name == 'posix' and sys.platform != 'cygwin':
serversock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) serversock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
serversock.bind(hostport) serversock.bind(hostport)
serversock.listen(5) serversock.listen(5)