Changeset 5827:54e9b83d00f0 in nginx


Ignore:
Timestamp:
08/13/14 06:53:55 (6 years ago)
Author:
FengGu <flygoast@…>
Branch:
default
Phase:
public
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/http/ngx_http_upstream.c

    r5818 r5827  
    520520        }
    521521
     522        if (rc == NGX_ERROR) {
     523            ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
     524            return;
     525        }
     526
    522527        if (rc != NGX_DECLINED) {
    523528            ngx_http_finalize_request(r, rc);
Note: See TracChangeset for help on using the changeset viewer.