Mercurial > hg > nginx-quic
comparison src/http/ngx_http_upstream.c @ 5827:54e9b83d00f0
Upstream: avoided directly terminating the connection.
When memory allocation failed in ngx_http_upstream_cache(), the connection
would be terminated directly in ngx_http_upstream_init_request().
Return a INTERNAL_SERVER_ERROR response instead.
author | FengGu <flygoast@126.com> |
---|---|
date | Wed, 13 Aug 2014 14:53:55 +0800 |
parents | fe8bafab5b49 |
children | d09b689911ac |
comparison
equal
deleted
inserted
replaced
5826:16013b71feed | 5827:54e9b83d00f0 |
---|---|
517 | 517 |
518 if (rc == NGX_DONE) { | 518 if (rc == NGX_DONE) { |
519 return; | 519 return; |
520 } | 520 } |
521 | 521 |
522 if (rc == NGX_ERROR) { | |
523 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); | |
524 return; | |
525 } | |
526 | |
522 if (rc != NGX_DECLINED) { | 527 if (rc != NGX_DECLINED) { |
523 ngx_http_finalize_request(r, rc); | 528 ngx_http_finalize_request(r, rc); |
524 return; | 529 return; |
525 } | 530 } |
526 } | 531 } |