From 44f06d9a30b5edd76d82e087a8aee5d68eeff493 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 17 Aug 2010 12:27:21 +0200 Subject: GUI: increase dbus timeout in Report() call Signed-off-by: Denys Vlasenko --- src/gui/CCDBusBackend.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/CCDBusBackend.py b/src/gui/CCDBusBackend.py index 5ddb9cdf..3673bdec 100644 --- a/src/gui/CCDBusBackend.py +++ b/src/gui/CCDBusBackend.py @@ -185,10 +185,12 @@ class DBusManager(gobject.GObject): # map < Plugin_name vec > # daemon expects plugin names, not the objects reporters_names = [str(reporter) for reporter in reporters] + # Timeout needs to be BIG: some reporters upload stuff over Internet, + # and uploading of, say, 200meg+ file can easily take ten minutes or more. if reporters_settings: - self.daemon().Report(report, reporters_names, reporters_settings, reply_handler=self.report_done, error_handler=self.error_handler_cb, timeout=60) + self.daemon().Report(report, reporters_names, reporters_settings, reply_handler=self.report_done, error_handler=self.error_handler_cb, timeout=3600) else: - self.daemon().Report(report, reporters_names, reply_handler=self.report_done, error_handler=self.error_handler_cb, timeout=60) + self.daemon().Report(report, reporters_names, reply_handler=self.report_done, error_handler=self.error_handler_cb, timeout=3600) def DeleteDebugDump(self, crash_id): return self.daemon().DeleteDebugDump(crash_id) -- cgit