]> git.kaiwu.me - nginx.git/commitdiff
Upstream: busy lock remnants removed.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 25 Jul 2013 10:55:59 +0000 (14:55 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 25 Jul 2013 10:55:59 +0000 (14:55 +0400)
src/http/ngx_http_upstream.c

index 05ed55401a795a638e7952dee29aee30261524e2..a6397c99e310b2d2f84c46cb657cad9d24ca7c8a 100644 (file)
@@ -3026,9 +3026,6 @@ ngx_http_upstream_process_request(ngx_http_request_t *r)
         if (p->upstream_done || p->upstream_eof || p->upstream_error) {
             ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
                            "http upstream exit: %p", p->out);
-#if 0
-            ngx_http_busy_unlock(u->conf->busy_lock, &u->busy_lock);
-#endif
             ngx_http_upstream_finalize_request(r, u, 0);
             return;
         }
@@ -3139,10 +3136,6 @@ ngx_http_upstream_next(ngx_http_request_t *r, ngx_http_upstream_t *u,
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
                    "http next upstream, %xi", ft_type);
 
-#if 0
-    ngx_http_busy_unlock(u->conf->busy_lock, &u->busy_lock);
-#endif
-
     if (u->peer.sockaddr) {
 
         if (ft_type == NGX_HTTP_UPSTREAM_FT_HTTP_403
@@ -3256,13 +3249,6 @@ ngx_http_upstream_next(ngx_http_request_t *r, ngx_http_upstream_t *u,
         u->peer.connection = NULL;
     }
 
-#if 0
-    if (u->conf->busy_lock && !u->busy_locked) {
-        ngx_http_upstream_busy_lock(p);
-        return;
-    }
-#endif
-
     ngx_http_upstream_connect(r, u);
 }