From 933c12b48d7c931f39ea7c00519e475bdc2901a4 Mon Sep 17 00:00:00 2001 From: Adarnof Date: Mon, 9 Apr 2018 22:14:21 -0400 Subject: [PATCH] Increase telnet timeout Should help tolerate slower responses from remote servers. Closes #751 Thanks @namenmalkav --- allianceauth/services/modules/teamspeak3/util/ts3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allianceauth/services/modules/teamspeak3/util/ts3.py b/allianceauth/services/modules/teamspeak3/util/ts3.py index 5c13f9a6..ead9ea60 100755 --- a/allianceauth/services/modules/teamspeak3/util/ts3.py +++ b/allianceauth/services/modules/teamspeak3/util/ts3.py @@ -36,7 +36,7 @@ class TS3Proto: def connect(self, ip, port): try: - self._conn = telnetlib.Telnet(host=ip, port=port) + self._conn = telnetlib.Telnet(host=ip, port=port, timeout=5) self._connected = True except: # raise ConnectionError(ip, port)