Change the timeout
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 31 May 2018 10:15:00 +0000 (19:15 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Mon, 4 Jun 2018 00:59:10 +0000 (09:59 +0900)
The timeout value of calling g_dbus_connection_send_message_with_reply_sync()
is changed to 5000ms.

Change-Id: I495c2ad2c5ae30d3fa047b290191432dae437c9d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/fdbroker-internal.cc

index 20d893c..0dce2cf 100644 (file)
@@ -264,7 +264,7 @@ int FdBroker::Send(const std::string& target_appid,
   g_dbus_message_set_unix_fd_list(msg, fd_list.GetRaw());
   reply = g_dbus_connection_send_message_with_reply_sync(
       DBusConnectionManager::GetInst().GetConnection(),
-      msg, G_DBUS_SEND_MESSAGE_FLAGS_NONE, 500, nullptr, nullptr, &err);
+      msg, G_DBUS_SEND_MESSAGE_FLAGS_NONE, 5000, nullptr, nullptr, &err);
   if (reply == nullptr) {
     LOGE("No reply. error = %s", err->message);
     g_error_free(err);