fix: HTTP/1.0 connection not closing causes ab benchmark to hang
- Add HTTP version detection in parse_http_request_usockets - Return Connection: close header for HTTP/1.0 requests - Call shutdown() for graceful connection close after HTTP/1.0 response - Fix missing is_http11 parameter in WebSocket upgrade handler - Support HTTP/1.0 with Connection: Keep-Alive header (ab -k mode) - Optimize: only check Connection header value for keep-alive (like Go net/http) Root cause: ab uses HTTP/1.0 by default, but server always returned Connection: keep-alive, causing ab to wait for server to close connection.
This commit is contained in:
Reference in New Issue
Block a user