ignore E1101 for TCP_KEEPTALIVE etc

* these things don't exist in the socket module under Windows
This commit is contained in:
Rossen Georgiev 2014-12-08 18:35:03 +00:00
parent 027769b003
commit a2a741b564
2 changed files with 4 additions and 1 deletions

View File

@ -183,9 +183,12 @@ class IS(object):
self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
if sys.platform not in ['cygwin', 'win32']:
# these things don't exist in socket under Windows
# pylint: disable=E1103
self.sock.setsockopt(socket.SOL_TCP, socket.TCP_KEEPIDLE, 15)
self.sock.setsockopt(socket.SOL_TCP, socket.TCP_KEEPCNT, 3)
self.sock.setsockopt(socket.SOL_TCP, socket.TCP_KEEPINTVL, 5)
# pylint: enable=E1103
if self.sock.recv(512)[0] != "#":
raise ConnectionError("invalid banner from server")

View File

@ -1 +1 @@
__version__ = '0.6.10'
__version__ = '0.6.11'