[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: test_large_put: compatibility wit
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: test_large_put: compatibility with old libcurl |
Date: |
Sun, 26 Dec 2021 16:25:59 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new cf42e7fd test_large_put: compatibility with old libcurl
cf42e7fd is described below
commit cf42e7fd4c56aeb97eb552a79edc6a40f3ba1580
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Dec 26 18:25:45 2021 +0300
test_large_put: compatibility with old libcurl
Compatibility was broken by 5ce0c23e37470b4e61ee431236b55bfc5d5744a9
---
src/testcurl/test_large_put.c | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c
index 0ccd97b4..ff9b4eb3 100644
--- a/src/testcurl/test_large_put.c
+++ b/src/testcurl/test_large_put.c
@@ -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))
@@ -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;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: test_large_put: compatibility with old libcurl,
gnunet <=