The official NGINX Open Source repository. https://nginx.org/
Find a file
Maxim Dounin 624fbe94a2 Fixing cpu hog with all upstream servers marked "down".
The following configuration causes nginx to hog cpu due to infinite loop
in ngx_http_upstream_get_peer():

    upstream backend {
        server 127.0.0.1:8080 down;
        server 127.0.0.1:8080 down;
    }

    server {
       ...
       location / {
           proxy_pass http://backend;
       }
    }

Make sure we don't loop infinitely in ngx_http_upstream_get_peer() but stop
after resetting peer weights once.

Return 0 if we are stuck.  This is guaranteed to work as peer 0 always exists,
and eventually ngx_http_upstream_get_round_robin_peer() will do the right
thing falling back to backup servers or returning NGX_BUSY.
2011-08-18 16:52:38 +00:00
auto Rebuild manpage only if needed. 2011-08-18 15:57:59 +00:00
conf use !aNULL to disable all anonymous cipher suites 2011-06-27 15:47:51 +00:00
contrib nginx-0.3.55-RELEASE import 2006-07-28 15:16:17 +00:00
docs - Replaced explicit link to bugtracker with a support link 2011-08-10 12:30:19 +00:00
misc copy OpenSSL-1.0.0d LICENSE for nginx/Windows zip 2011-07-29 15:15:16 +00:00
src Fixing cpu hog with all upstream servers marked "down". 2011-08-18 16:52:38 +00:00
.hgtags release-1.1.0 tag 2011-08-01 14:47:46 +00:00