[gvfs] client: increase dbus proxy timeout for unmount



commit 22c7d972914fb62c60e260ad0da86bcd595745c3
Author: Ondrej Holy <oholy redhat com>
Date:   Tue Sep 16 13:21:32 2014 +0200

    client: increase dbus proxy timeout for unmount
    
    Default timeout is too short and error "Timeout was reached" could be
    shown if user don't interact with unmount dialog. The patch sets the
    timeout to 30 minutes as it is set on server side.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710986

 client/gdaemonmount.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/client/gdaemonmount.c b/client/gdaemonmount.c
index 60dd8bf..97fb068 100644
--- a/client/gdaemonmount.c
+++ b/client/gdaemonmount.c
@@ -250,6 +250,9 @@ async_proxy_new_cb (GObject *source_object,
 
   mount_source = g_mount_operation_dbus_wrap (data->mount_operation, _g_daemon_vfs_get_async_bus ());
 
+  /* 30 minute timeout */
+  g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (proxy), 1000 * 60 * 30);
+
   gvfs_dbus_mount_call_unmount (proxy,
                                 g_mount_source_get_dbus_id (mount_source),
                                 g_mount_source_get_obj_path (mount_source),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]