From 3129d89f0f951d475aa86f303c1ef9b6a612cb73 Mon Sep 17 00:00:00 2001 From: Javad Asgari Shafique Date: Fri, 14 Nov 2025 21:34:11 +0100 Subject: [PATCH] simplyprint: increase connect timeout from 5.0 to 15.0 seconds Signed-off-by: Javad Asgari Shafique --- moonraker/components/simplyprint.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/moonraker/components/simplyprint.py b/moonraker/components/simplyprint.py index 4741b70..0338d42 100644 --- a/moonraker/components/simplyprint.py +++ b/moonraker/components/simplyprint.py @@ -200,7 +200,7 @@ class SimplyPrint(APITransport): log_connect = False try: self.ws = await tornado.websocket.websocket_connect( - url, connect_timeout=5., + url, connect_timeout=15., ) setattr(self.ws, "on_ping", self._on_ws_ping) cur_time = self.eventloop.get_loop_time() @@ -1507,7 +1507,8 @@ class PrintHandler: logging.debug(f"Downloading URL: {url}") tmp_path = await client.download_file( url, accept, progress_callback=self._on_download_progress, - request_timeout=3600. + connect_timeout=15., + request_timeout=3600., ) except asyncio.TimeoutError: raise