Merge pull request #3175 from ejohnstown/dtls-speed-redux

DTLS Test Speed Fix Redux
This commit is contained in:
Sean Parkinson
2020-07-30 22:17:40 +10:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -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. */

View File

@@ -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