diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-04-20 18:29:38 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-04-20 18:29:38 +0000 |
commit | 11dc6d06afa0fe8f7d2eb8a64d9a7698a3192434 (patch) | |
tree | abe875df045db481d1bc4e1851d88c84dc99e06f | |
parent | ca51b3506847042eaf62fa1e21219ca3df44e475 (diff) | |
download | libmicrohttpd-11dc6d06afa0fe8f7d2eb8a64d9a7698a3192434.tar.gz libmicrohttpd-11dc6d06afa0fe8f7d2eb8a64d9a7698a3192434.zip |
Updated test_post.c to not ignore specific error on W32 if libcurl
is built with workaround for WinSock bug.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/testcurl/test_post.c | 6 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,10 @@ | |||
1 | Wed Apr 20 18:12:30 CET 2016 | ||
2 | Fixed macros in sysfdsetsize.c which could prevent compiling with | ||
3 | non-default FD_SETSIZE. | ||
4 | Fixed comments in mhd_str.c. | ||
5 | Updated test_post.c to not ignore specific error on W32 if libcurl | ||
6 | is built with workaround for WinSock bug. -EG | ||
7 | |||
1 | Mon Apr 18 19:35:14 CET 2016 | 8 | Mon Apr 18 19:35:14 CET 2016 |
2 | Fixed data races leading to inability in rare situations to | 9 | Fixed data races leading to inability in rare situations to |
3 | resume suspended connection. -EG | 10 | resume suspended connection. -EG |
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c index 992f8b8b..7872e652 100644 --- a/src/testcurl/test_post.c +++ b/src/testcurl/test_post.c | |||
@@ -598,8 +598,10 @@ testMultithreadedPostCancelPart(int flags) | |||
598 | if (CURLE_HTTP_RETURNED_ERROR != (errornum = curl_easy_perform (c))) | 598 | if (CURLE_HTTP_RETURNED_ERROR != (errornum = curl_easy_perform (c))) |
599 | { | 599 | { |
600 | #ifdef _WIN32 | 600 | #ifdef _WIN32 |
601 | if (0 != (flags & FLAG_SLOW_READ) && CURLE_RECV_ERROR == errornum) | 601 | curl_version_info_data *curlverd = curl_version_info(CURLVERSION_NOW); |
602 | { | 602 | if (0 != (flags & FLAG_SLOW_READ) && CURLE_RECV_ERROR == errornum && |
603 | (curlverd == NULL || curlverd->ares_num < 0x073100) ) | ||
604 | { /* libcurl up to version 7.49.0 didn't have workaround for WinSock bug */ | ||
603 | fprintf (stderr, "Ignored curl_easy_perform expected failure on W32 with \"slow read\".\n"); | 605 | fprintf (stderr, "Ignored curl_easy_perform expected failure on W32 with \"slow read\".\n"); |
604 | result = 0; | 606 | result = 0; |
605 | } | 607 | } |