diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-12-02 10:50:33 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-12-04 17:59:12 +0300 |
commit | 055979f85410cb5383c234b5ea99050012ff7253 (patch) | |
tree | 234cef62978b76cc198b37b73a07e0c34bdd4323 | |
parent | 9474ec08ff8c3e495c8119e11b16305fa84af977 (diff) | |
download | libmicrohttpd-055979f85410cb5383c234b5ea99050012ff7253.tar.gz libmicrohttpd-055979f85410cb5383c234b5ea99050012ff7253.zip |
test_client_put_stop: use correct 'sleep' amount on W32
-rw-r--r-- | src/microhttpd/test_client_put_stop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/microhttpd/test_client_put_stop.c b/src/microhttpd/test_client_put_stop.c index bb49da07..d5ce701f 100644 --- a/src/microhttpd/test_client_put_stop.c +++ b/src/microhttpd/test_client_put_stop.c | |||
@@ -835,6 +835,7 @@ _MHD_dumbClient_perform (struct _MHD_dumbClient *clnt) | |||
835 | mhd_assert ((0 != rs.fd_count) || (0 != ws.fd_count) || \ | 835 | mhd_assert ((0 != rs.fd_count) || (0 != ws.fd_count) || \ |
836 | (0 != es.fd_count)); | 836 | (0 != es.fd_count)); |
837 | externalErrorExitDesc ("Unexpected select() error"); | 837 | externalErrorExitDesc ("Unexpected select() error"); |
838 | Sleep (tv.tv_sec * 1000 + tv.tv_usec / 1000); | ||
838 | #endif /* ! MHD_POSIX_SOCKETS */ | 839 | #endif /* ! MHD_POSIX_SOCKETS */ |
839 | continue; | 840 | continue; |
840 | } | 841 | } |
@@ -1277,7 +1278,7 @@ performQueryExternal (struct MHD_Daemon *d, struct _MHD_dumbClient *clnt) | |||
1277 | if ((WSAEINVAL != WSAGetLastError ()) || | 1278 | if ((WSAEINVAL != WSAGetLastError ()) || |
1278 | (0 != rs.fd_count) || (0 != ws.fd_count) || (0 != es.fd_count) ) | 1279 | (0 != rs.fd_count) || (0 != ws.fd_count) || (0 != es.fd_count) ) |
1279 | externalErrorExitDesc ("Unexpected select() error"); | 1280 | externalErrorExitDesc ("Unexpected select() error"); |
1280 | Sleep (1); | 1281 | Sleep (tv.tv_sec * 1000 + tv.tv_usec / 1000); |
1281 | #endif | 1282 | #endif |
1282 | continue; | 1283 | continue; |
1283 | } | 1284 | } |