[libchamplain] Allow libsoup to use more connections per host
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [libchamplain] Allow libsoup to use more connections per host
- Date: Sat, 13 Jun 2009 19:05:06 -0400 (EDT)
commit 5d3bc7706f34fceddc0f0277e4b00d7bb72c85a4
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Sat Jun 13 18:26:56 2009 -0400
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
champlain/champlain-network-map-source.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]