From 40260f177a5c43441b2f0f3e0171639f104e953f Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Tue, 14 Mar 2006 14:21:01 +0000 Subject: [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 --- desktop/options.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'desktop/options.c') 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 }; -- cgit v1.2.3