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:
Reid 'arrdem' McKenzie 2023-05-30 22:24:08 -06:00
parent acaf3d0645
commit 883c74bf62

View file

@ -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()