From d35062b49c215c4ece23f7dc60cec9850d413154 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sun, 13 Nov 2016 08:50:09 +0100 Subject: [PATCH] Half-open connection limit warning fix - it only should complain if on Windows and can't determine the Windows version --- src/helper_startup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/helper_startup.py b/src/helper_startup.py index b7a1ef1b..cc74649a 100644 --- a/src/helper_startup.py +++ b/src/helper_startup.py @@ -140,10 +140,9 @@ def loadConfig(): def isOurOperatingSystemLimitedToHavingVeryFewHalfOpenConnections(): try: - VER_THIS=StrictVersion(platform.version()) if sys.platform[0:3]=="win": + VER_THIS=StrictVersion(platform.version()) return StrictVersion("5.1.2600")<=VER_THIS and StrictVersion("6.0.6000")>=VER_THIS return False except Exception as err: - print "Info: we could not tell whether your OS is limited to having very few half open connections because we couldn't interpret the platform version. Don't worry; we'll assume that it is not limited. This tends to occur on Raspberry Pis. :", err return False