summaryrefslogtreecommitdiff
path: root/desktop/options.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2006-03-14 14:21:01 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2006-03-14 14:21:01 +0000
commit40260f177a5c43441b2f0f3e0171639f104e953f (patch)
tree089d8b3b98c800fd6aed519ef4729845eea50dfc /desktop/options.c
parent63a70da244cdc9ce051cfbb38bf0443f2bd86121 (diff)
downloadnetsurf-40260f177a5c43441b2f0f3e0171639f104e953f.tar.gz
netsurf-40260f177a5c43441b2f0f3e0171639f104e953f.tar.bz2
[project @ 2006-03-14 14:21:00 by dsilvers]
Multi-parallel fetch. Needs documenting, works in basic GTK tests, makes things way faster on GTK port. Needs testing on RO and in general more testing is good. svn path=/import/netsurf/; revision=2127
Diffstat (limited to 'desktop/options.c')
-rw-r--r--desktop/options.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/desktop/options.c b/desktop/options.c
index 0aa3fc065..2f52db239 100644
--- a/desktop/options.c
+++ b/desktop/options.c
@@ -77,6 +77,19 @@ char *option_cookie_file = 0;
/** Cookie jar loaction */
char *option_cookie_jar = 0;
+/* Fetcher configuration */
+/** Maximum simultaneous active fetchers */
+int option_max_fetchers = 24;
+/** Maximum simultaneous active fetchers per host.
+ * (<=option_max_fetchers else it makes no sense
+ */
+int option_max_fetchers_per_host = 5;
+/** Maximum number of inactive fetchers cached.
+ * The total number of handles netsurf will therefore have open
+ * is this plus option_max_fetchers.
+ */
+int option_max_cached_fetch_handles = 6;
+
EXTRA_OPTION_DEFINE
@@ -105,6 +118,12 @@ struct {
{ "ca_bundle", OPTION_STRING, &option_ca_bundle },
{ "cookie_file", OPTION_STRING, &option_cookie_file },
{ "cookie_jar", OPTION_STRING, &option_cookie_jar },
+ /* Fetcher options */
+ { "max_fetchers", OPTION_INTEGER, &option_max_fetchers },
+ { "max_fetchers_per_host",
+ OPTION_INTEGER, &option_max_fetchers_per_host },
+ { "max_cached_fetch_handles",
+ OPTION_INTEGER, &option_max_cached_fetch_handles },
EXTRA_OPTION_TABLE
};