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 committed 2026-11-21 20:47:45 -05:00
1 parent 00e2fd89e8
commit a8d58085cb
8 files changed
+42 -4

No files matched your search

+6
View File
@@ -34,6 +34,11 @@
#define CPPHTTPLIB_KEEPALIVE_TIMEOUT_SECOND 5
#endif
// Whether a Server starts with set_keep_alive_parking(true).
#ifndef CPPHTTPLIB_KEEPALIVE_PARKING
#define CPPHTTPLIB_KEEPALIVE_PARKING false
#endif
#ifndef CPPHTTPLIB_KEEPALIVE_TIMEOUT_CHECK_INTERVAL_USECOND
#define CPPHTTPLIB_KEEPALIVE_TIMEOUT_CHECK_INTERVAL_USECOND 10000
#endif
@@ -14552,6 +14557,7 @@ inline Server::Server()
#ifndef _WIN32
signal(SIGPIPE, SIG_IGN);
#endif
set_keep_alive_parking(CPPHTTPLIB_KEEPALIVE_PARKING);
}
inline Server::~Server() = default;