From 406bc978fb983eb9cfadf499d1b01e9d8c7425ad Mon Sep 17 00:00:00 2001 From: Luca Guerra Date: Wed, 21 Dec 2022 12:31:29 +0000 Subject: [PATCH] update(build): update libcurl to 7.87.0 Signed-off-by: Luca Guerra --- cmake/modules/curl.cmake | 4 ++-- userspace/libsinsp/mesos_http.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/modules/curl.cmake b/cmake/modules/curl.cmake index aca8d05a9a..e804c86dbc 100644 --- a/cmake/modules/curl.cmake +++ b/cmake/modules/curl.cmake @@ -36,8 +36,8 @@ else() curl PREFIX "${PROJECT_BINARY_DIR}/curl-prefix" DEPENDS openssl zlib - URL "https://github.com/curl/curl/releases/download/curl-7_84_0/curl-7.84.0.tar.bz2" - URL_HASH "SHA256=702fb26e73190a3bd77071aa146f507b9817cc4dfce218d2ab87f00cd3bc059d" + URL "https://github.com/curl/curl/releases/download/curl-7_87_0/curl-7.87.0.tar.bz2" + URL_HASH "SHA256=5d6e128761b7110946d1276aff6f0f266f2b726f5e619f7e0a057a474155f307" CONFIGURE_COMMAND ./configure ${CURL_SSL_OPTION} diff --git a/userspace/libsinsp/mesos_http.cpp b/userspace/libsinsp/mesos_http.cpp index ad40f12423..08d9c38a17 100644 --- a/userspace/libsinsp/mesos_http.cpp +++ b/userspace/libsinsp/mesos_http.cpp @@ -539,7 +539,7 @@ int mesos_http::get_socket(long timeout_ms) check_error(curl_easy_perform(m_select_curl)); - check_error(curl_easy_getinfo(m_select_curl, CURLINFO_LASTSOCKET, &sockextr)); + check_error(curl_easy_getinfo(m_select_curl, CURLINFO_ACTIVESOCKET, &sockextr)); m_watch_socket = sockextr; if(!wait(0))