Set default timeout for g_dbus_proxy_call() to 5 minutes 36/258236/2 accepted/tizen/unified/20210526.051939 submit/tizen/20210514.153447
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 11 May 2021 15:51:56 +0000 (17:51 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 12 May 2021 14:06:26 +0000 (16:06 +0200)
The current default value (25s) is too small for update-manager to have
time to extract data from delta.tar and restart the target, which is
manifested by the user being shown an error message just before the
target restarts. The time has been extended to ensure that the user is
not unnecessarily informed of an update error that did not occur.

Change-Id: Ia99a9bf79ffc0cbe1dde6c963c9bae3678245595

src/update_control.c
src/update_control_internal.h

index 78bfcfda052c8f50824c7ef7d312990dd900b3f1..5879b0cd94e4cedf0afa40f8db61c6a68e03f314 100644 (file)
@@ -52,6 +52,8 @@ API int update_control_initialize(void)
                _I("Success to get proxy for org.tizen.update.manager");
        }
 
+       g_dbus_proxy_set_default_timeout(G_DBUS_PROXY(proxy), DBUS_PROXY_TIMEOUT);
+
        if (access(UPDATE_CONTROL_PLUGIN, F_OK) == 0) {
                _I("Success to find update control plugin");
 
index 94692770f6cffa74e0712d486ace03f738814ad6..8ecca8473be4bca09fd92e57c8818ec7e0646490 100644 (file)
@@ -47,7 +47,7 @@ do {\
                return UPDATE_CONTROL_ERROR_SYSTEM_ERROR; \
        } \
 } while (0);
-
+#define DBUS_PROXY_TIMEOUT 5*60*1000
 #ifdef __cplusplus
 }
 #endif