[gnome-software/gnome-3-16] Set soup session timeout and idle-timeout properties to 60



commit d7d6e195ff0d19fc0843481b88308a6ab2380480
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-fedora-tagger-ratings.c |    3 ++-
 src/plugins/gs-plugin-fedora-tagger-usage.c   |    3 ++-
 src/plugins/gs-plugin-icons.c                 |    3 ++-
 4 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 484268b..43eddaf 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -1311,7 +1311,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-fedora-tagger-ratings.c b/src/plugins/gs-plugin-fedora-tagger-ratings.c
index 95aa00a..22bb579 100644
--- a/src/plugins/gs-plugin-fedora-tagger-ratings.c
+++ b/src/plugins/gs-plugin-fedora-tagger-ratings.c
@@ -162,7 +162,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) {
                g_set_error (error,
diff --git a/src/plugins/gs-plugin-fedora-tagger-usage.c b/src/plugins/gs-plugin-fedora-tagger-usage.c
index c042dc5..2f5f919 100644
--- a/src/plugins/gs-plugin-fedora-tagger-usage.c
+++ b/src/plugins/gs-plugin-fedora-tagger-usage.c
@@ -107,7 +107,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) {
                g_set_error (error,
diff --git a/src/plugins/gs-plugin-icons.c b/src/plugins/gs-plugin-icons.c
index ce85c76..6d5ab89 100644
--- a/src/plugins/gs-plugin-icons.c
+++ b/src/plugins/gs-plugin-icons.c
@@ -90,7 +90,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) {
                g_set_error (error,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]