search for: libcurl_version_major

Displaying 3 results from an estimated 3 matches for "libcurl_version_major".

2024 Apr 25
1
Big speedup in install.packages() by re-using connections
...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_cleanup(c->hnd[i]); } - if (c->mhnd) - curl_multi_clean...
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
...ean 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_cleanup(c->hnd[i]); > } >...