diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-01-24 18:45:51 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-01-24 18:45:51 +0100 |
commit | 6218fb1ac62350c47c5b92a9dc4848e9c3329fc9 (patch) | |
tree | f2a804a39960ffb9f7e1d40b8d2bfc7be39d7722 /src/prefsparser.cc | |
parent | 57ab2fb1d1a02b552a10c531f0ef84ad03fdd963 (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/prefsparser.cc')
-rw-r--r-- | src/prefsparser.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/prefsparser.cc b/src/prefsparser.cc index 3b4dc6e1..f2cc50ac 100644 --- a/src/prefsparser.cc +++ b/src/prefsparser.cc @@ -63,6 +63,7 @@ int PrefsParser::parseOption(char *name, char *value) { "geometry", NULL, PREFS_GEOMETRY }, { "home", &prefs.home, PREFS_URL }, { "http_language", &prefs.http_language, PREFS_STRING }, + { "http_max_conns", &prefs.http_max_conns, PREFS_INT32 }, { "http_proxy", &prefs.http_proxy, PREFS_URL }, { "http_proxyuser", &prefs.http_proxyuser, PREFS_STRING }, { "http_referer", &prefs.http_referer, PREFS_STRING }, |