DTLS Test Speed Fix Redux

1. Fix the check for XSLEEP_US in the client.
2. Added XSLEEP_MS to mirror XSLEEP_US, in terms of XSELECT().
This commit is contained in:
John Safranek 2020-07-29 16:51:08 -07:00
parent 64f6dc08f7
commit 397d1ab19c
No known key found for this signature in database
GPG Key ID: 8CE817DE0D3CCB4A
2 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,7 @@
#define OCSP_STAPLINGV2_MULTI 3
#define OCSP_STAPLING_OPT_MAX OCSP_STAPLINGV2_MULTI
#if defined(XUSLEEP) && defined(NO_MAIN_DRIVER)
#if defined(XSLEEP_US) && defined(NO_MAIN_DRIVER)
/* This is to force the server's thread to get a chance to
* execute before continuing the resume in non-blocking
* DTLS test cases. */

View File

@ -156,6 +156,7 @@
select(0, NULL, NULL, NULL, &tv); \
} while (0)
#define XSLEEP_US(u) XSELECT_WAIT(0,u)
#define XSLEEP_MS(m) XSELECT_WAIT(0,(m)*1000)
#endif /* USE_WINDOWS_API */
#ifndef XSLEEP_MS