Increase DBus timeout 13/275413/2
authorMateusz Majewski <m.majewski2@samsung.com>
Tue, 24 May 2022 12:01:58 +0000 (14:01 +0200)
committerMateusz Majewski <m.majewski2@samsung.com>
Tue, 24 May 2022 12:40:14 +0000 (14:40 +0200)
Change-Id: I0712faba6745a9141e17b242cc9a9fd3c239335f

NOTES.md [new file with mode: 0644]
src/update_control_internal.h

diff --git a/NOTES.md b/NOTES.md
new file mode 100644 (file)
index 0000000..f9caa87
--- /dev/null
+++ b/NOTES.md
@@ -0,0 +1 @@
+The upgrade DBus method is a bit unusual, in that it waits synchronously for upgrade before returning a result. This means that it has to use a larger timeout than usual; we set the timeout of this method to 6 hours in update_control API.
index 8ecca8473be4bca09fd92e57c8818ec7e0646490..2b5063a2af8b7906596bfcce9a6c2a2f54436404 100644 (file)
@@ -47,7 +47,8 @@ do {\
                return UPDATE_CONTROL_ERROR_SYSTEM_ERROR; \
        } \
 } while (0);
-#define DBUS_PROXY_TIMEOUT 5*60*1000
+// DBUS_PROXY_TIMEOUT is 6 hours
+#define DBUS_PROXY_TIMEOUT 6 * 60 * 60 * 1000
 #ifdef __cplusplus
 }
 #endif