[evolution-data-server] Preset timeout on SoupSession-s to 90 seconds
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Preset timeout on SoupSession-s to 90 seconds
- Date: Wed, 11 Jul 2012 10:30:22 +0000 (UTC)
commit e9a5b76c36781f94d8b8bed3a174e9fe2823213a
Author: Milan Crha <mcrha redhat com>
Date: Wed Jul 11 12:29:49 2012 +0200
Preset timeout on SoupSession-s to 90 seconds
.../backends/webdav/e-book-backend-webdav.c | 1 +
calendar/backends/http/e-cal-backend-http.c | 1 +
modules/online-accounts/goaewsclient.c | 4 +++-
3 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/backends/webdav/e-book-backend-webdav.c b/addressbook/backends/webdav/e-book-backend-webdav.c
index 25248b1..7c104a5 100644
--- a/addressbook/backends/webdav/e-book-backend-webdav.c
+++ b/addressbook/backends/webdav/e-book-backend-webdav.c
@@ -1294,6 +1294,7 @@ e_book_backend_webdav_open (EBookBackend *backend,
g_free (filename);
session = soup_session_sync_new ();
+ g_object_set (session, SOUP_SESSION_TIMEOUT, 90, NULL);
g_object_bind_property (
webdav_extension, "ignore-invalid-cert",
diff --git a/calendar/backends/http/e-cal-backend-http.c b/calendar/backends/http/e-cal-backend-http.c
index 4cfdf37..83cbfc2 100644
--- a/calendar/backends/http/e-cal-backend-http.c
+++ b/calendar/backends/http/e-cal-backend-http.c
@@ -169,6 +169,7 @@ e_cal_backend_http_constructed (GObject *object)
G_OBJECT_CLASS (e_cal_backend_http_parent_class)->constructed (object);
soup_session = soup_session_sync_new ();
+ g_object_set (soup_session, SOUP_SESSION_TIMEOUT, 90, NULL);
backend = E_CAL_BACKEND_HTTP (object);
backend->priv->soup_session = soup_session;
diff --git a/modules/online-accounts/goaewsclient.c b/modules/online-accounts/goaewsclient.c
index 1b09e50..84374b9 100644
--- a/modules/online-accounts/goaewsclient.c
+++ b/modules/online-accounts/goaewsclient.c
@@ -418,7 +418,9 @@ goa_ews_autodiscover (GoaObject *goa_object,
data->msgs[1] = ews_create_msg_for_url (url2, buf);
data->session = soup_session_async_new_with_options (
SOUP_SESSION_USE_NTLM, TRUE,
- SOUP_SESSION_USE_THREAD_CONTEXT, TRUE, NULL);
+ SOUP_SESSION_USE_THREAD_CONTEXT, TRUE,
+ SOUP_SESSION_TIMEOUT, 90,
+ NULL);
if (G_IS_CANCELLABLE (cancellable)) {
data->cancellable = g_object_ref (cancellable);
data->cancellable_id = g_cancellable_connect (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]