[libgdata/offline-testing] core: Fix default timeout value for SoupSession
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/offline-testing] core: Fix default timeout value for SoupSession
- Date: Tue, 30 Jul 2013 08:28:12 +0000 (UTC)
commit 8bdc9995ceb32bbdf69e03c071f1e447e29391ca
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Jul 30 10:23:49 2013 +0200
core: Fix default timeout value for SoupSession
SoupSession’s default HTTP timeout is 60s, whereas the old value used
by SoupSessionSync was 0s (i.e. no timeout). In order to preserve
defaults for GDataService:timeout, we need to explicitly set the
timeout to 0s.
gdata/gdata-service.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index b153b69..59f27d2 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -2158,7 +2158,9 @@ _gdata_service_build_session (void)
ssl_strict = FALSE;
}
- session = soup_session_new_with_options ("ssl-strict", ssl_strict, NULL);
+ session = soup_session_new_with_options ("ssl-strict", ssl_strict,
+ "timeout", 0,
+ NULL);
#ifdef HAVE_GNOME
soup_session_add_feature_by_type (session, SOUP_TYPE_GNOME_FEATURES_2_26);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]