[gnome-software/gnome-3-14] Set soup session timeout and idle-timeout properties to 60
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-14] Set soup session timeout and idle-timeout properties to 60
- Date: Fri, 29 May 2015 11:41:43 +0000 (UTC)
commit c631b6e6a7d69498f747dcd4ab6b116d31a8429e
Author: Kalev Lember <kalevlember gmail com>
Date: Fri May 29 13:11:39 2015 +0200
Set soup session timeout and idle-timeout properties to 60
This ensures connections get closed in a reasonable time and not left
hanging.
https://bugzilla.gnome.org/show_bug.cgi?id=749971
src/gs-shell-details.c | 3 ++-
src/plugins/gs-plugin-epiphany.c | 3 ++-
src/plugins/gs-plugin-fedora-tagger-ratings.c | 3 ++-
src/plugins/gs-plugin-fedora-tagger-usage.c | 3 ++-
4 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 65f50a9..80e6b5f 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -1472,7 +1472,8 @@ gs_shell_details_init (GsShellDetails *shell_details)
/* setup networking */
priv->session = soup_session_sync_new_with_options (SOUP_SESSION_USER_AGENT,
"gnome-software",
- SOUP_SESSION_TIMEOUT, 5000,
+ SOUP_SESSION_TIMEOUT, 60,
+ SOUP_SESSION_IDLE_TIMEOUT, 60,
NULL);
if (priv->session != NULL) {
soup_session_add_feature_by_type (priv->session,
diff --git a/src/plugins/gs-plugin-epiphany.c b/src/plugins/gs-plugin-epiphany.c
index ad7568f..bc94176 100644
--- a/src/plugins/gs-plugin-epiphany.c
+++ b/src/plugins/gs-plugin-epiphany.c
@@ -522,7 +522,8 @@ gs_plugin_setup_networking (GsPlugin *plugin, GError **error)
/* set up a session */
plugin->priv->session = soup_session_sync_new_with_options (SOUP_SESSION_USER_AGENT,
"gnome-software",
- SOUP_SESSION_TIMEOUT, 5000,
+ SOUP_SESSION_TIMEOUT, 60,
+ SOUP_SESSION_IDLE_TIMEOUT, 60,
NULL);
if (plugin->priv->session == NULL) {
ret = FALSE;
diff --git a/src/plugins/gs-plugin-fedora-tagger-ratings.c b/src/plugins/gs-plugin-fedora-tagger-ratings.c
index d037b5c..1949d49 100644
--- a/src/plugins/gs-plugin-fedora-tagger-ratings.c
+++ b/src/plugins/gs-plugin-fedora-tagger-ratings.c
@@ -165,7 +165,8 @@ gs_plugin_setup_networking (GsPlugin *plugin, GError **error)
/* set up a session */
plugin->priv->session = soup_session_sync_new_with_options (SOUP_SESSION_USER_AGENT,
"gnome-software",
- SOUP_SESSION_TIMEOUT, 5000,
+ SOUP_SESSION_TIMEOUT, 60,
+ SOUP_SESSION_IDLE_TIMEOUT, 60,
NULL);
if (plugin->priv->session == NULL) {
ret = FALSE;
diff --git a/src/plugins/gs-plugin-fedora-tagger-usage.c b/src/plugins/gs-plugin-fedora-tagger-usage.c
index 3be2284..ceb6d2d 100644
--- a/src/plugins/gs-plugin-fedora-tagger-usage.c
+++ b/src/plugins/gs-plugin-fedora-tagger-usage.c
@@ -110,7 +110,8 @@ gs_plugin_setup_networking (GsPlugin *plugin, GError **error)
/* set up a session */
plugin->priv->session = soup_session_sync_new_with_options (SOUP_SESSION_USER_AGENT,
"gnome-software",
- SOUP_SESSION_TIMEOUT, 5000,
+ SOUP_SESSION_TIMEOUT, 60,
+ SOUP_SESSION_IDLE_TIMEOUT, 60,
NULL);
if (plugin->priv->session == NULL) {
ret = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]