summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2014-02-18 17:30:40 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2014-02-18 17:30:40 +0400
commitd5da8fa776ff62ea3ccb81f8438a4bfe340d364b (patch)
tree6e45c4be8fda689d6f1f6876ee7496ce96dc9c24 /src/http/ngx_http_request.c
parentd08e51c2da86e93a2b375078677b9c430b723019 (diff)
downloadnginx-d5da8fa776ff62ea3ccb81f8438a4bfe340d364b.tar.gz
nginx-d5da8fa776ff62ea3ccb81f8438a4bfe340d364b.tar.bz2
Upstream: ngx_post_event() instead of upgraded call (ticket #503).
If a request is finalized in the first call to the ngx_http_upstream_process_upgraded() function, e.g., because upstream server closed the connection for some reason, in the second call the u->peer.connection pointer will be null, resulting in segmentation fault. Fix is to avoid second direct call, and post event instead. This ensures that ngx_http_upstream_process_upgraded() won't be called again if a request is finalized.
Diffstat (limited to 'src/http/ngx_http_request.c')
0 files changed, 0 insertions, 0 deletions