Run the test suite with keep-alive parking on in CI, and mark it experimental

CPPHTTPLIB_KEEPALIVE_PARKING makes every Server start with parking on.
The OpenSSL jobs on Ubuntu (epoll) and macOS (kqueue) now also run the
whole suite built with it, which used to be done only locally. The two
tests that check the blocking path turn parking off explicitly. README
and the cookbook call the feature experimental and say that a server
whose event loop cannot be set up serves as it does without it.
This commit is contained in:
yhirose authored and yhirose committed 2026-11-21 21:23:22 -05:00
1 parent f09081e320
commit 51b186974b
8 files changed
+42 -4

No files matched your search

+4
View File
@@ -5864,6 +5864,8 @@ TEST(SSLClientServerTest, ClientSessionIsNotResumedPastItsCA) {
TEST(SSLClientServerTest, UpdateCertsPemWaitsForHandshakeInProgress) {
SSLServer svr(SERVER_CERT_FILE, SERVER_PRIVATE_KEY_FILE);
ASSERT_TRUE(svr.is_valid());
// Keep-alive parking would wait for the ClientHello without a handshake.
svr.set_keep_alive_parking(false);
svr.Get("/test", [](const Request &, Response &res) {
res.set_content("ok", "text/plain");
});
@@ -17495,6 +17497,8 @@ TEST(SSLClientServerTest, SSLConnectTimeout) {
NoListenSSLServer svr(SERVER_CERT_FILE, SERVER_PRIVATE_KEY_FILE,
CLIENT_CA_CERT_FILE);
ASSERT_TRUE(svr.is_valid());
// Keep-alive parking would bypass the override.
svr.set_keep_alive_parking(false);
svr.Get("/test", [&](const Request &, Response &res) {
res.set_content("test", "text/plain");