Half-open connection limit warning fix
- it only should complain if on Windows and can't determine the Windows version
This commit is contained in:
parent
2fc2c78299
commit
d35062b49c
|
@ -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
|
||||
|
|
Reference in New Issue
Block a user