commit 055979f85410cb5383c234b5ea99050012ff7253
parent 9474ec08ff8c3e495c8119e11b16305fa84af977
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 2 Dec 2021 10:50:33 +0300
test_client_put_stop: use correct 'sleep' amount on W32
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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)
mhd_assert ((0 != rs.fd_count) || (0 != ws.fd_count) || \
(0 != es.fd_count));
externalErrorExitDesc ("Unexpected select() error");
+ Sleep (tv.tv_sec * 1000 + tv.tv_usec / 1000);
#endif /* ! MHD_POSIX_SOCKETS */
continue;
}
@@ -1277,7 +1278,7 @@ performQueryExternal (struct MHD_Daemon *d, struct _MHD_dumbClient *clnt)
if ((WSAEINVAL != WSAGetLastError ()) ||
(0 != rs.fd_count) || (0 != ws.fd_count) || (0 != es.fd_count) )
externalErrorExitDesc ("Unexpected select() error");
- Sleep (1);
+ Sleep (tv.tv_sec * 1000 + tv.tv_usec / 1000);
#endif
continue;
}