aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-07-11 18:37:12 +0800
committerMilan Crha <mcrha@redhat.com>2012-07-11 18:37:12 +0800
commit1852490a930c625a5fb300069694d661e3eeed02 (patch)
tree0402609ae4a8daeadc74b790437d0902053757e0 /mail
parent5183108e3bbcfc1b23a2d5c2b67d3f41000c5e32 (diff)
downloadgsoc2013-evolution-1852490a930c625a5fb300069694d661e3eeed02.tar
gsoc2013-evolution-1852490a930c625a5fb300069694d661e3eeed02.tar.gz
gsoc2013-evolution-1852490a930c625a5fb300069694d661e3eeed02.tar.bz2
gsoc2013-evolution-1852490a930c625a5fb300069694d661e3eeed02.tar.lz
gsoc2013-evolution-1852490a930c625a5fb300069694d661e3eeed02.tar.xz
gsoc2013-evolution-1852490a930c625a5fb300069694d661e3eeed02.tar.zst
gsoc2013-evolution-1852490a930c625a5fb300069694d661e3eeed02.zip
Preset timeout on SoupSession-s to 90 seconds
Diffstat (limited to 'mail')
-rw-r--r--mail/e-http-request.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/e-http-request.c b/mail/e-http-request.c
index db3047e2f4..45f5517f2a 100644
--- a/mail/e-http-request.c
+++ b/mail/e-http-request.c
@@ -376,7 +376,9 @@ handle_http_request (GSimpleAsyncResult *res,
context = g_main_context_get_thread_default ();
session = soup_session_async_new_with_options (
- SOUP_SESSION_ASYNC_CONTEXT, context, NULL);
+ SOUP_SESSION_ASYNC_CONTEXT, context,
+ SOUP_SESSION_TIMEOUT, 90,
+ NULL);
requester = soup_requester_new ();
soup_session_add_feature (session, SOUP_SESSION_FEATURE (requester));