aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/proxy/ngx_http_proxy_upstream.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-03-19 05:25:53 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-03-19 05:25:53 +0000
commitae02c19867083c6ad3e51506109cb37bca1d36d1 (patch)
tree195dbf63aa4155ca9161f096848fe06fbdc3ba6e /src/http/modules/proxy/ngx_http_proxy_upstream.c
parentda85f7f5fc233a10abf3cbcbda547c918b67fb27 (diff)
downloadnginx-ae02c19867083c6ad3e51506109cb37bca1d36d1.tar.gz
nginx-ae02c19867083c6ad3e51506109cb37bca1d36d1.zip
nginx-0.0.3-2004-03-19-08:25:53 import
Diffstat (limited to 'src/http/modules/proxy/ngx_http_proxy_upstream.c')
-rw-r--r--src/http/modules/proxy/ngx_http_proxy_upstream.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http/modules/proxy/ngx_http_proxy_upstream.c b/src/http/modules/proxy/ngx_http_proxy_upstream.c
index f4bc1c4ed..d72f09e0b 100644
--- a/src/http/modules/proxy/ngx_http_proxy_upstream.c
+++ b/src/http/modules/proxy/ngx_http_proxy_upstream.c
@@ -85,8 +85,8 @@ int ngx_http_proxy_request_upstream(ngx_http_proxy_ctx_t *p)
return NGX_DONE;
}
- if (rc == NGX_ERROR) {
- return NGX_HTTP_INTERNAL_SERVER_ERROR;
+ if (rc >= NGX_HTTP_SPECIAL_RESPONSE || rc == NGX_ERROR) {
+ return rc;
}
}
@@ -1243,8 +1243,8 @@ static void ngx_http_proxy_process_body(ngx_event_t *ev)
#endif
if (ep->upstream_done || ep->upstream_eof || ep->upstream_error) {
- ngx_log_debug0(NGX_LOG_DEBUG_HTTP, ev->log, 0,
- "http proxy upstream exit");
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ev->log, 0,
+ "http proxy upstream exit: " PTR_FMT, ep->out);
ngx_http_busy_unlock(p->lcf->busy_lock, &p->busy_lock);
ngx_http_proxy_finalize_request(p, 0);
return;