Adjust threshold

This commit is contained in:
yhirose 2025-02-19 18:12:08 -05:00
parent 14877fe789
commit 7cd66371e6

View File

@ -8341,8 +8341,7 @@ TEST(MaxTimeoutTest, ContentStream) {
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT #ifdef CPPHTTPLIB_OPENSSL_SUPPORT
TEST(MaxTimeoutTest, ContentStreamSSL) { TEST(MaxTimeoutTest, ContentStreamSSL) {
time_t timeout = 2000; time_t timeout = 2000;
time_t threshold = 200; // TODO: This value should be adjusted due to the time_t threshold = 500; // SSL_shutdown is slow on some operating systems.
// slowness of SSL_shutdown on some operating systems.
SSLServer svr(SERVER_CERT_FILE, SERVER_PRIVATE_KEY_FILE); SSLServer svr(SERVER_CERT_FILE, SERVER_PRIVATE_KEY_FILE);