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
90e2c1a888
commit
eba7b80fac
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ from tentacles.store import Store
|
||||||
class OctoRest(_OR):
|
class OctoRest(_OR):
|
||||||
def _get(self, path, params=None):
|
def _get(self, path, params=None):
|
||||||
url = urlparse.urljoin(self.url, path)
|
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)
|
self._check_response(response)
|
||||||
|
|
||||||
return response.json()
|
return response.json()
|
||||||
|
|
Loading…
Reference in a new issue