From 8605f74d2726c1682bf4d15035a02285b606cf3d Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Mon, 10 Aug 2015 13:08:04 +0100 Subject: [PATCH] removed linux specific socket keepalive settings fix #6 --- aprslib/IS.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/aprslib/IS.py b/aprslib/IS.py index 30bb133..e69cd34 100644 --- a/aprslib/IS.py +++ b/aprslib/IS.py @@ -22,7 +22,6 @@ import socket import select import time import logging -import sys from . import __version__, string_type, is_py3 from .parsing import parse @@ -236,14 +235,6 @@ 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 - banner = self.sock.recv(512) if is_py3: banner = banner.decode('latin-1')