]> git.kaiwu.me - nginx.git/commit
Upstream: setting u->header_sent before ngx_http_upstream_upgrade().
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 30 Aug 2013 17:44:16 +0000 (21:44 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 30 Aug 2013 17:44:16 +0000 (21:44 +0400)
commit9f46a9df864c74a2b175840895173e1ddb2cf6f3
treee1ec07cf0b2f957adb09ca1a6e0813834d9a747c
parent6d7ec5009a585fbbfa01a1b02fe7116957bcf5f0
Upstream: setting u->header_sent before ngx_http_upstream_upgrade().

Without u->header_sent set a special response might be generated following
an upgraded connection.  The problem appeared in 1ccdda1f37f3 (1.5.3).
Catched by "header already sent" alerts in 1.5.4 after upstream timeouts.
src/http/ngx_http_upstream.c