Skip to content

Commit

Permalink
test_large_put: compatibility with old libcurl
Browse files Browse the repository at this point in the history
Compatibility was broken by 5ce0c23
  • Loading branch information
Karlson2k committed Dec 26, 2021
1 parent b800cc1 commit cf42e7f
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/testcurl/test_large_put.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,13 @@ testPutExternal (void)
FD_ZERO (&rs);
FD_ZERO (&ws);
FD_ZERO (&es);
if (CURLM_OK != curl_multi_perform (multi, &running))
libcurlErrorExitDesc ("curl_multi_perform() failed");
mret = curl_multi_perform (multi, &running);
if ((CURLM_OK != mret) && (CURLM_CALL_MULTI_PERFORM != mret))
{
fprintf (stderr, "curl_multi_perform() failed. Error: '%s'. ",
curl_multi_strerror (mret));
libcurlErrorExit ();
}
if (CURLM_OK != curl_multi_fdset (multi, &rs, &ws, &es, &maxcurlsock))
libcurlErrorExitDesc ("curl_multi_fdset() failed");
if (MHD_YES != MHD_get_fdset (d, &rs, &ws, &es, &maxMHDsock))
Expand All @@ -741,8 +746,13 @@ testPutExternal (void)
#endif
}

if (CURLM_OK != curl_multi_perform (multi, &running))
libcurlErrorExitDesc ("curl_multi_perform() failed");
mret = curl_multi_perform (multi, &running);
if ((CURLM_OK != mret) && (CURLM_CALL_MULTI_PERFORM != mret))
{
fprintf (stderr, "curl_multi_perform() failed. Error: '%s'. ",
curl_multi_strerror (mret));
libcurlErrorExit ();
}
if (0 == running)
{
int pending;
Expand Down

0 comments on commit cf42e7f

Please sign in to comment.