mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-26 20:48:24 +00:00
--no-keep-alive sends "Connection: close" so that every request opens a new connection, which measures the cost of accepting and setting one up. bombardier's default fasthttp client ignores its own -a flag, so the header is the way to do it. On macOS, keep runs short (--duration 1s): at about 20k connections per second, closed connections pile up in TIME_WAIT and a 5-second run starts failing, on any ref.