diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-10-09 17:22:57 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-10-09 17:22:57 +0000 |
commit | 5d06dbf97454ffde02045af8c1ef7e721f02280b (patch) | |
tree | 2ddddfa470508f44c69efb73b7927a753abb9bc7 /content/fetchers/curl.c | |
parent | 6e23106b452708f41d0225d8f6c887816d981b05 (diff) | |
download | netsurf-5d06dbf97454ffde02045af8c1ef7e721f02280b.tar.gz netsurf-5d06dbf97454ffde02045af8c1ef7e721f02280b.tar.bz2 |
prevent odd curl non completion behaviour
svn path=/trunk/netsurf/; revision=13024
Diffstat (limited to 'content/fetchers/curl.c')
-rw-r--r-- | content/fetchers/curl.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index ca0341165..f4daa1ec0 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -60,6 +60,10 @@ */ #include <desktop/browser.h> +/* uncomment this to use scheduler based calling +#define FETCHER_CURLL_SCHEDULED 1 +*/ + /** SSL certificate info */ struct cert_info { X509 *cert; /**< Pointer to certificate */ @@ -252,7 +256,11 @@ void fetch_curl_register(void) fetch_curl_start, fetch_curl_abort, fetch_curl_free, +#ifdef FETCHER_CURLL_SCHEDULED + NULL, +#else fetch_curl_poll, +#endif fetch_curl_finalise)) { LOG(("Unable to register cURL fetcher for %s", data->protocols[i])); @@ -758,10 +766,12 @@ void fetch_curl_poll(lwc_string *scheme_ignored) } curl_msg = curl_multi_info_read(fetch_curl_multi, &queue); } - + +#ifdef FETCHER_CURLL_SCHEDULED if (running != 0) { - schedule(10, (schedule_callback_fn)fetch_curl_poll, fetch_curl_poll); + schedule(1, (schedule_callback_fn)fetch_curl_poll, fetch_curl_poll); } +#endif } |