Raise the connect timeout to 1s from 1/10s
OctoPrint isn't fast and this should mitigate some error flakes.
This commit is contained in:
parent
acaf3d0645
commit
883c74bf62
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ from tentacles.store import Store
|
|||
class OctoRest(_OR):
|
||||
def _get(self, path, params=None):
|
||||
url = urlparse.urljoin(self.url, path)
|
||||
response = self.session.get(url, params=params, timeout=(0.1, 1.0))
|
||||
response = self.session.get(url, params=params, timeout=(1.0, 1.0))
|
||||
self._check_response(response)
|
||||
|
||||
return response.json()
|
||||
|
|
Loading…
Reference in a new issue