comparison src/http/modules/proxy/ngx_http_proxy_upstream.c @ 293:ec3c049681fd

nginx-0.0.3-2004-03-19-08:25:53 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 19 Mar 2004 05:25:53 +0000
parents a472bfb778b3
children 5cfd65b8b0a7
comparison
equal deleted inserted replaced
292:a472bfb778b3 293:ec3c049681fd
83 83
84 if (rc == NGX_AGAIN) { 84 if (rc == NGX_AGAIN) {
85 return NGX_DONE; 85 return NGX_DONE;
86 } 86 }
87 87
88 if (rc == NGX_ERROR) { 88 if (rc >= NGX_HTTP_SPECIAL_RESPONSE || rc == NGX_ERROR) {
89 return NGX_HTTP_INTERNAL_SERVER_ERROR; 89 return rc;
90 } 90 }
91 } 91 }
92 92
93 ngx_http_proxy_init_upstream(p); 93 ngx_http_proxy_init_upstream(p);
94 94
1241 } 1241 }
1242 1242
1243 #endif 1243 #endif
1244 1244
1245 if (ep->upstream_done || ep->upstream_eof || ep->upstream_error) { 1245 if (ep->upstream_done || ep->upstream_eof || ep->upstream_error) {
1246 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, ev->log, 0, 1246 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ev->log, 0,
1247 "http proxy upstream exit"); 1247 "http proxy upstream exit: " PTR_FMT, ep->out);
1248 ngx_http_busy_unlock(p->lcf->busy_lock, &p->busy_lock); 1248 ngx_http_busy_unlock(p->lcf->busy_lock, &p->busy_lock);
1249 ngx_http_proxy_finalize_request(p, 0); 1249 ngx_http_proxy_finalize_request(p, 0);
1250 return; 1250 return;
1251 } 1251 }
1252 } 1252 }