[gvfs] client: Set default timeout to infinite for all GDaemonFile methods
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] client: Set default timeout to infinite for all GDaemonFile methods
- Date: Mon, 3 Dec 2012 13:16:19 +0000 (UTC)
commit c2b246c8e9ee67034aa0e0017516bc0f05448783
Author: Tomas Bzatek <tbzatek redhat com>
Date: Mon Dec 3 14:15:33 2012 +0100
client: Set default timeout to infinite for all GDaemonFile methods
Certain operations may take a lot of time to complete, don't timeout
on that. Use cancellable if you need to control the flow.
https://bugzilla.gnome.org/show_bug.cgi?id=687534
client/gdaemonfile.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index 144104b..ebde8c5 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -432,6 +432,9 @@ create_proxy_for_file2 (GFile *file1,
if (proxy == NULL)
goto out;
+ /* Set infinite timeout, see bug 687534 */
+ g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (proxy), G_MAXINT);
+
_g_dbus_connect_vfs_filters (connection);
if (mount_info1_out)
@@ -534,6 +537,10 @@ async_proxy_new_cb (GObject *source_object,
}
data->proxy = proxy;
+
+ /* Set infinite timeout, see bug 687534 */
+ g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (data->proxy), G_MAXINT);
+
_g_dbus_connect_vfs_filters (data->connection);
path = g_mount_info_resolve_path (data->mount_info, daemon_file->path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]