aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/proxy/ngx_http_proxy_upstream.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-07-05 15:08:23 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-07-05 15:08:23 +0000
commitf1be53b48a52a79bc9edee07b4a3d0169339f05b (patch)
tree0e63eaea1550dd534fab81589049bd20c9cf826f /src/http/modules/proxy/ngx_http_proxy_upstream.c
parent32fcd5cf64b9f55f9184e98e39f1b2152321a710 (diff)
downloadnginx-f1be53b48a52a79bc9edee07b4a3d0169339f05b.tar.gz
nginx-f1be53b48a52a79bc9edee07b4a3d0169339f05b.zip
nginx-0.0.7-2004-07-05-19:08:23 import
Diffstat (limited to 'src/http/modules/proxy/ngx_http_proxy_upstream.c')
-rw-r--r--src/http/modules/proxy/ngx_http_proxy_upstream.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/modules/proxy/ngx_http_proxy_upstream.c b/src/http/modules/proxy/ngx_http_proxy_upstream.c
index 9ed4d7f61..335d1dacd 100644
--- a/src/http/modules/proxy/ngx_http_proxy_upstream.c
+++ b/src/http/modules/proxy/ngx_http_proxy_upstream.c
@@ -62,6 +62,9 @@ int ngx_http_proxy_request_upstream(ngx_http_proxy_ctx_t *p)
u->peer.log_error = NGX_ERROR_ERR;
u->peer.peers = p->lcf->peers;
u->peer.tries = p->lcf->peers->number;
+#if (NGX_THREADS)
+ u->peer.lock = &r->connection->lock;
+#endif
u->method = r->method;