mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
Fix error refreshing library counts when XML fails
* Also increase http request timeout to 20 seconds
This commit is contained in:
parent
419f8dadad
commit
4a5e38dc1e
2 changed files with 23 additions and 17 deletions
|
@ -56,12 +56,12 @@ class HTTPHandler(object):
|
|||
if proto.upper() == 'HTTPS':
|
||||
if not self.ssl_verify and hasattr(ssl, '_create_unverified_context'):
|
||||
context = ssl._create_unverified_context()
|
||||
handler = HTTPSConnection(host=self.host, port=self.port, timeout=10, context=context)
|
||||
handler = HTTPSConnection(host=self.host, port=self.port, timeout=20, context=context)
|
||||
logger.warn(u"PlexPy HTTP Handler :: Unverified HTTPS request made. This connection is not secure.")
|
||||
else:
|
||||
handler = HTTPSConnection(host=self.host, port=self.port, timeout=10)
|
||||
handler = HTTPSConnection(host=self.host, port=self.port, timeout=20)
|
||||
else:
|
||||
handler = HTTPConnection(host=self.host, port=self.port, timeout=10)
|
||||
handler = HTTPConnection(host=self.host, port=self.port, timeout=20)
|
||||
|
||||
token_string = ''
|
||||
if not no_token:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue