diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2006-03-14 14:21:01 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2006-03-14 14:21:01 +0000 |
commit | 40260f177a5c43441b2f0f3e0171639f104e953f (patch) | |
tree | 089d8b3b98c800fd6aed519ef4729845eea50dfc /desktop | |
parent | 63a70da244cdc9ce051cfbb38bf0443f2bd86121 (diff) | |
download | netsurf-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')
-rw-r--r-- | desktop/options.c | 19 | ||||
-rw-r--r-- | desktop/options.h | 6 |
2 files changed, 25 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 }; diff --git a/desktop/options.h b/desktop/options.h index 49d956a0d..2ae805618 100644 --- a/desktop/options.h +++ b/desktop/options.h @@ -50,6 +50,12 @@ extern char *option_ca_bundle; extern char *option_cookie_file; extern char *option_cookie_jar; +/* Fetcher configuration. */ +extern int option_max_fetchers; +extern int option_max_fetchers_per_host; +extern int option_max_cached_fetch_handles; + + void options_read(const char *path); void options_write(const char *path); void options_dump(void); |