mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Merge pull request #3175 from ejohnstown/dtls-speed-redux
DTLS Test Speed Fix Redux
This commit is contained in:
@@ -65,7 +65,7 @@
|
|||||||
#define OCSP_STAPLINGV2_MULTI 3
|
#define OCSP_STAPLINGV2_MULTI 3
|
||||||
#define OCSP_STAPLING_OPT_MAX OCSP_STAPLINGV2_MULTI
|
#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
|
/* This is to force the server's thread to get a chance to
|
||||||
* execute before continuing the resume in non-blocking
|
* execute before continuing the resume in non-blocking
|
||||||
* DTLS test cases. */
|
* DTLS test cases. */
|
||||||
|
@@ -156,6 +156,7 @@
|
|||||||
select(0, NULL, NULL, NULL, &tv); \
|
select(0, NULL, NULL, NULL, &tv); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define XSLEEP_US(u) XSELECT_WAIT(0,u)
|
#define XSLEEP_US(u) XSELECT_WAIT(0,u)
|
||||||
|
#define XSLEEP_MS(m) XSELECT_WAIT(0,(m)*1000)
|
||||||
#endif /* USE_WINDOWS_API */
|
#endif /* USE_WINDOWS_API */
|
||||||
|
|
||||||
#ifndef XSLEEP_MS
|
#ifndef XSLEEP_MS
|
||||||
|
Reference in New Issue
Block a user