mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: `ab -k` behaves weirdly: it'll send an HTTP/1.0 request with keep-alive set but stops doing anything at all if the server doesn't also set Connection: keep-alive which our example HTTP1Server didn't do. Modifications: In the HTTP1Server example if we receive an HTTP/1.0 request with Connection: keep-alive, we'll now set keep-alive too. Result: ab -k doesn't get stuck anymore.