Apache Benchmark hangs when setting option -k if using FallbackHandler to a WSGIContainer.
I think the problem is that WSGIContainer does not set a Connection header when the request does not support HTTP 1.1.
Copying the code that sets the headers from RequestHandler.clear to WSGIContainer.__call__ fixes the issue:
if not request.supports_http_1_1():
if request.headers.get("Connection", '').lower() == "keep-alive":
Btw, I have seen some clients sending a lowercase value for Keep-Alive, so I also suggest doing .lower() == "keep-alive" on RequestHandler.clear.
.lower() == "keep-alive"
It seems calling .clear() would also fix #619.