      }
  
      us->peer.data = peers;
-@@ -323,6 +350,9 @@ ngx_http_upstream_create_round_robin_peer(ngx_http_request_t *r,
+@@ -301,6 +328,9 @@ ngx_http_upstream_create_round_robin_peer(ngx_http_request_t *r,
          peers->peer[0].current_weight = 0;
          peers->peer[0].max_fails = 1;
          peers->peer[0].fail_timeout = 10;

             }
         }
 
@@ -145,6 +158,17 @@ ngx_http_upstream_init_round_robin(ngx_conf_t *cf,
                 backup->peer[n].max_fails = server[i].max_fails;
                 backup->peer[n].fail_timeout = server[i].fail_timeout;
                 backup->peer[n].down = server[i].down;

                 n++;
             }
         }
@@ -196,6 +220,9 @@ ngx_http_upstream_init_round_robin(ngx_conf_t *cf,
         peers->peer[i].current_weight = 0;
         peers->peer[i].max_fails = 1;
         peers->peer[i].fail_timeout = 10;
