]> err.no Git - libchamplain/commitdiff
Allow libsoup to use more connections per host
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sat, 13 Jun 2009 22:26:56 +0000 (18:26 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sat, 13 Jun 2009 22:26:56 +0000 (18:26 -0400)
8 is apparently the default on Firefox and Opera, this dramatically
improve loading speeds at the cost of server ressources

champlain/champlain-network-map-source.c

index f3eed7c3184d5491c2df33fec5e88a238b9913fb..9669ce81881d27b8e2ccbea0e1fe3cfac0fd1617 100644 (file)
@@ -625,8 +625,9 @@ fill_tile (ChamplainMapSource *map_source,
               SOUP_SESSION_ADD_FEATURE_BY_TYPE, SOUP_TYPE_PROXY_RESOLVER_GNOME,
 #endif
               NULL);
-          g_object_set (G_OBJECT (soup_session), "user-agent", "libchamplain/"
-              CHAMPLAIN_VERSION_S, NULL);
+          g_object_set (G_OBJECT (soup_session),
+              "user-agent", "libchamplain/" CHAMPLAIN_VERSION_S,
+              "max-conns-per-host", 8, NULL); // This is the same has Firefox
           g_object_add_weak_pointer (G_OBJECT (soup_session),
               (gpointer *) &soup_session);
         }