search for: curl_multi_init

Displaying 6 results from an estimated 6 matches for "curl_multi_init".

2024 Apr 25
1
Big speedup in install.packages() by re-using connections
...t.cenddata = sentinel; + R_RegisterCFinalizerEx(sentinel, cleanup_mhnd, TRUE); + // Succeeded, no need to clean up if endcontext() fails allocation + mhnd_sentinel = sentinel; + cntxt.cend = NULL; + endcontext(&cntxt); + } + if(!shared_mhnd) { + shared_mhnd = curl_multi_init(); + } + return shared_mhnd; +} + # if LIBCURL_VERSION_MAJOR < 7 || (LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR < 28) // curl/curl.h includes <sys/select.h> and headers it requires. @@ -565,8 +606,6 @@ if (c->hnd && c->hnd[i]) curl_easy_c...
2024 Apr 25
1
Big speedup in install.packages() by re-using connections
I'd like to raise this again now that 4.4 is out. Below is a more complete patch which includes a function to properly cleanup libcurl when R quits. Implementing this is a little tricky because libcurl is a separate "module" in R, perhaps there is a better way, but this works: view: https://github.com/r-devel/r-svn/pull/166/files patch:
2024 Sep 02
1
Big speedup in install.packages() by re-using connections
...isterCFinalizerEx(sentinel, cleanup_mhnd, TRUE); > + // Succeeded, no need to clean up if endcontext() fails allocation > + mhnd_sentinel = sentinel; > + cntxt.cend = NULL; > + endcontext(&cntxt); > + } > + if(!shared_mhnd) { > + shared_mhnd = curl_multi_init(); > + } > + return shared_mhnd; > +} > + > # if LIBCURL_VERSION_MAJOR < 7 || (LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR < 28) > > // curl/curl.h includes <sys/select.h> and headers it requires. > @@ -565,8 +606,6 @@ > if (c-&...
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
..._formfree@@CURL_GNUTLS_3 U curl_free@@CURL_GNUTLS_3 U curl_global_cleanup@@CURL_GNUTLS_3 U curl_global_init@@CURL_GNUTLS_3 U curl_multi_add_handle@@CURL_GNUTLS_3 U curl_multi_fdset@@CURL_GNUTLS_3 U curl_multi_init@@CURL_GNUTLS_3 U curl_multi_perform@@CURL_GNUTLS_3 U curl_multi_remove_handle@@CURL_GNUTLS_3 U curl_slist_append@@CURL_GNUTLS_3 U curl_slist_free_all@@CURL_GNUTLS_3 U curl_unescape@@CURL_GNUTLS_3 U...
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
..._formfree@@CURL_GNUTLS_3 U curl_free@@CURL_GNUTLS_3 U curl_global_cleanup@@CURL_GNUTLS_3 U curl_global_init@@CURL_GNUTLS_3 U curl_multi_add_handle@@CURL_GNUTLS_3 U curl_multi_fdset@@CURL_GNUTLS_3 U curl_multi_init@@CURL_GNUTLS_3 U curl_multi_perform@@CURL_GNUTLS_3 U curl_multi_remove_handle@@CURL_GNUTLS_3 U curl_slist_append@@CURL_GNUTLS_3 U curl_slist_free_all@@CURL_GNUTLS_3 U curl_unescape@@CURL_GNUTLS_3 U...
2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
.../ - slist1 = curl_slist_append(slist1, "Pragma: no-cache"); + struct curl_slist *tmp = + curl_slist_append(headers, "Pragma: no-cache"); + if (!tmp) { + curl_slist_free_all(headers); + error(_("out of memory")); + } + headers = tmp; } CURLM *mhnd = curl_multi_init(); @@ -521,8 +540,7 @@ in_do_curlDownload(SEXP call, SEXP op, SEXP args, SEXP rho) #if (LIBCURL_VERSION_MINOR >= 25) curl_easy_setopt(hnd[i], CURLOPT_TCP_KEEPALIVE, 1L); #endif - if (!cacheOK) - curl_easy_setopt(hnd[i], CURLOPT_HTTPHEADER, slist1); + curl_easy_setopt(hnd[i], CURLOPT_HTTPH...