aboutsummaryrefslogtreecommitdiff
path: root/src/prefs.c
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-01-24 18:45:51 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-01-24 18:45:51 +0100
commit6218fb1ac62350c47c5b92a9dc4848e9c3329fc9 (patch)
treef2a804a39960ffb9f7e1d40b8d2bfc7be39d7722 /src/prefs.c
parent57ab2fb1d1a02b552a10c531f0ef84ad03fdd963 (diff)
limit the number of simultaneous connections
The number of simultaneous connections to a single server is now limited by prefs.http_max_conns (default 6). This avoids opening hundreds of connections on pages with many images (BUG 685). This commit is partly based on a prototype by Jorge Arellano Cid.
Diffstat (limited to 'src/prefs.c')
-rw-r--r--src/prefs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c
index 6d073251..d43e33b9 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -58,6 +58,7 @@ void a_Prefs_init(void)
prefs.home = a_Url_new(PREFS_HOME, NULL);
prefs.http_language = NULL;
prefs.http_proxy = NULL;
+ prefs.http_max_conns = 6;
prefs.http_proxyuser = NULL;
prefs.http_referer = dStrdup(PREFS_HTTP_REFERER);
prefs.limit_text_width = FALSE;