Klaus Demo nginx / e6122ef
Upstream: NGX_ERROR after pipe errors. Maxim Dounin 8 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
29032903 }
29042904
29052905 if (ngx_event_pipe(p, wev->write) == NGX_ABORT) {
2906 ngx_http_upstream_finalize_request(r, u, 0);
2906 ngx_http_upstream_finalize_request(r, u, NGX_ERROR);
29072907 return;
29082908 }
29092909
29282928 }
29292929
29302930 if (ngx_event_pipe(p, 1) == NGX_ABORT) {
2931 ngx_http_upstream_finalize_request(r, u, 0);
2931 ngx_http_upstream_finalize_request(r, u, NGX_ERROR);
29322932 return;
29332933 }
29342934 }
29562956
29572957 } else {
29582958 if (ngx_event_pipe(u->pipe, 0) == NGX_ABORT) {
2959 ngx_http_upstream_finalize_request(r, u, 0);
2959 ngx_http_upstream_finalize_request(r, u, NGX_ERROR);
29602960 return;
29612961 }
29622962 }
30343034 "http upstream downstream error");
30353035
30363036 if (!u->cacheable && !u->store && u->peer.connection) {
3037 ngx_http_upstream_finalize_request(r, u, 0);
3037 ngx_http_upstream_finalize_request(r, u, NGX_ERROR);
30383038 }
30393039 }
30403040 }