Changeset 7130:882ad033d43c in nginx


Ignore:
Timestamp:
10/11/17 19:04:28 (2 years ago)
Author:
Ruslan Ermilov <ru@…>
Branch:
default
Phase:
public
Message:

Upstream: fixed $upstream_status when upstream returns 503/504.

If proxy_next_upstream includes http_503/http_504, and upstream
returns 503/504, $upstream_status converted this to 502 for any
values except the last one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/http/ngx_http_upstream.c

    r7126 r7130  
    41124112
    41134113    case NGX_HTTP_UPSTREAM_FT_TIMEOUT:
     4114    case NGX_HTTP_UPSTREAM_FT_HTTP_504:
    41144115        status = NGX_HTTP_GATEWAY_TIME_OUT;
    41154116        break;
     
    41174118    case NGX_HTTP_UPSTREAM_FT_HTTP_500:
    41184119        status = NGX_HTTP_INTERNAL_SERVER_ERROR;
     4120        break;
     4121
     4122    case NGX_HTTP_UPSTREAM_FT_HTTP_503:
     4123        status = NGX_HTTP_SERVICE_UNAVAILABLE;
    41194124        break;
    41204125
Note: See TracChangeset for help on using the changeset viewer.