From 77e0d705dbaf3c6d23b7202111e9fc25492d1d95 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 7 Aug 2024 18:04:18 +0200 Subject: [PATCH] The easy way to fix a slow response is to up the timeout. This might on one hand have (other) consequences, and given the slowness we encounter not even be enough in some cases (may be related to the size of the messages?) May need to be fixed on server side. attempt to adress CURA-11956 --- plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py index 4feb77222af..3c8e53b2e9c 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py @@ -42,7 +42,7 @@ class CloudApiClient: CLUSTER_API_ROOT = f"{ROOT_PATH}/connect/v1" CURA_API_ROOT = f"{ROOT_PATH}/cura/v1" - DEFAULT_REQUEST_TIMEOUT = 10 # seconds + DEFAULT_REQUEST_TIMEOUT = 30 # seconds # In order to avoid garbage collection we keep the callbacks in this list. _anti_gc_callbacks = [] # type: List[Callable[[Any], None]]