summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
authorAnatol Pomozov <anatol.pomozov@gmail.com>2020-03-09 23:23:12 +0100
committerAllan McRae <allan@archlinux.org>2020-05-09 03:58:21 +0200
commitdc98d0ea09f3632cd28a12099f3f09d466dcad1d (patch)
treeb98d0d579b2f214b2c5989e0bd5149dc38ebee2f /lib/libalpm/handle.c
parenta8a1a1bb3ec98a8471cb5cd13d096f39a267f789 (diff)
downloadpacman-dc98d0ea09f3632cd28a12099f3f09d466dcad1d.tar.gz
pacman-dc98d0ea09f3632cd28a12099f3f09d466dcad1d.tar.xz
Add multi_curl handle to ALPM global context
To be able to run multiple download in parallel efficiently we need to use curl_multi interface [1]. It introduces a set of APIs over new type of handler 'CURLM'. Create CURLM object at the application start and set it to global ALPM context. The 'single-download' CURL handle moves to payload struct. A new CURL handle is created for each payload with intention to be processed by CURLM. Note that curl_download_internal() is not ported to CURLM interface due to the fact that the function will go away soon. [1] https://curl.haxx.se/libcurl/c/libcurl-multi.html Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/handle.c')
-rw-r--r--lib/libalpm/handle.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index e3b2c911..1310601a 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -64,11 +64,6 @@ void _alpm_handle_free(alpm_handle_t *handle)
closelog();
}
-#ifdef HAVE_LIBCURL
- /* release curl handle */
- curl_easy_cleanup(handle->curl);
-#endif
-
#ifdef HAVE_LIBGPGME
FREELIST(handle->known_keys);
#endif