Skip to content

Commit 9673e02

Browse files
authored
Use curl_multi_wait rather than curl_multi_poll (#1855)
1 parent c675b3c commit 9673e02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vcpkg/base/downloads.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,11 @@ namespace vcpkg
214214
Checks::unreachable(VCPKG_LINE_INFO);
215215
}
216216

217-
mc = curl_multi_poll(multi_handle.get(), nullptr, 0, 1000, nullptr);
217+
// we use curl_multi_wait rather than curl_multi_poll for wider compatibility
218+
mc = curl_multi_wait(multi_handle.get(), nullptr, 0, 1000, nullptr);
218219
if (mc != CURLM_OK)
219220
{
220-
Debug::println("curl_multi_poll failed:");
221+
Debug::println("curl_multi_wait failed:");
221222
Debug::println(msg::format(msgCurlFailedGeneric, msg::exit_code = static_cast<int>(mc))
222223
.append_raw(fmt::format(" ({}).", curl_multi_strerror(mc))));
223224
Checks::unreachable(VCPKG_LINE_INFO);

0 commit comments

Comments
 (0)