[gvfs/mtp-1.14.0: 49/49] Fix hopelessly short timeout in file transfers.
- From: Philip Langdale <philipl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/mtp-1.14.0: 49/49] Fix hopelessly short timeout in file transfers.
- Date: Sat, 3 Nov 2012 23:04:50 +0000 (UTC)
commit 85a68b285be2bcec3d6a51d4580f5a9c89e6ab51
Author: Philip Langdale <philipl overt org>
Date: Sat Nov 3 15:59:52 2012 -0700
Fix hopelessly short timeout in file transfers.
The client code was using the default 25 second timeout for
file transfer operations, which is far too short.
client/gdaemonfile.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index 144104b..a8bcd41 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -2807,6 +2807,9 @@ retry:
if (proxy == NULL)
goto out;
+ /* File transfers can take arbitrarily long amounts of time. */
+ g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (proxy), G_MAXINT);
+
data.progress_callback = progress_callback;
data.progress_callback_data = progress_callback_data;
data.context = g_main_context_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]