libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 11dc6d06afa0fe8f7d2eb8a64d9a7698a3192434
parent ca51b3506847042eaf62fa1e21219ca3df44e475
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed, 20 Apr 2016 18:29:38 +0000

Updated test_post.c to not ignore specific error on W32 if libcurl
is built with workaround for WinSock bug.

Diffstat:
MChangeLog | 7+++++++
Msrc/testcurl/test_post.c | 6++++--
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,10 @@ +Wed Apr 20 18:12:30 CET 2016 + Fixed macros in sysfdsetsize.c which could prevent compiling with + non-default FD_SETSIZE. + Fixed comments in mhd_str.c. + Updated test_post.c to not ignore specific error on W32 if libcurl + is built with workaround for WinSock bug. -EG + Mon Apr 18 19:35:14 CET 2016 Fixed data races leading to inability in rare situations to resume suspended connection. -EG diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c @@ -598,8 +598,10 @@ testMultithreadedPostCancelPart(int flags) if (CURLE_HTTP_RETURNED_ERROR != (errornum = curl_easy_perform (c))) { #ifdef _WIN32 - if (0 != (flags & FLAG_SLOW_READ) && CURLE_RECV_ERROR == errornum) - { + curl_version_info_data *curlverd = curl_version_info(CURLVERSION_NOW); + if (0 != (flags & FLAG_SLOW_READ) && CURLE_RECV_ERROR == errornum && + (curlverd == NULL || curlverd->ares_num < 0x073100) ) + { /* libcurl up to version 7.49.0 didn't have workaround for WinSock bug */ fprintf (stderr, "Ignored curl_easy_perform expected failure on W32 with \"slow read\".\n"); result = 0; }