Skip to content

Commit 7e64bc2

Browse files
committed
Revert "Use curl_multi_wait rather than curl_multi_poll (microsoft#1855)"
This reverts commit 9673e02.
1 parent 6d2ea34 commit 7e64bc2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/vcpkg/base/downloads.cpp

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

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);
217+
mc = curl_multi_poll(multi_handle.get(), nullptr, 0, 1000, nullptr);
219218
if (mc != CURLM_OK)
220219
{
221-
Debug::println("curl_multi_wait failed:");
220+
Debug::println("curl_multi_poll failed:");
222221
Debug::println(msg::format(msgCurlFailedGeneric, msg::exit_code = static_cast<int>(mc))
223222
.append_raw(fmt::format(" ({}).", curl_multi_strerror(mc))));
224223
Checks::unreachable(VCPKG_LINE_INFO);

0 commit comments

Comments
 (0)