]> git.kaiwu.me - nginx.git/commit
Disable HTTP keepalive for HTTP CONNECT requests
authorRoman Arutyunyan <arut@nginx.com>
Mon, 13 Jul 2026 18:16:34 +0000 (22:16 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Wed, 15 Jul 2026 14:37:17 +0000 (18:37 +0400)
commitd798231b56bb4a6284999e3b868b503c4a7ee8d3
tree97a505a026a5e7a3ccc9f9312d3fa6aa2edb179a
parentf475868196d2f907768bdfdeec0878ed2702cd0d
Disable HTTP keepalive for HTTP CONNECT requests

As per RFC 2817 Section 5.2:

Like any other pipelined HTTP/1.1 request, data to be tunneled may be
sent immediately after the blank line. The usual caveats also apply:
data may be discarded if the eventual response is negative, and the
connection may be reset with no response if more than one TCP segment
is outstanding.
src/http/ngx_http_core_module.c