From: Pierre-Luc Beaudoin Date: Sat, 13 Jun 2009 22:26:56 +0000 (-0400) Subject: Allow libsoup to use more connections per host X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d3bc7706f34fceddc0f0277e4b00d7bb72c85a4;p=libchamplain Allow libsoup to use more connections per host 8 is apparently the default on Firefox and Opera, this dramatically improve loading speeds at the cost of server ressources --- diff --git a/champlain/champlain-network-map-source.c b/champlain/champlain-network-map-source.c index f3eed7c..9669ce8 100644 --- a/champlain/champlain-network-map-source.c +++ b/champlain/champlain-network-map-source.c @@ -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); }