Changeset 6706:829468da49d6 in nginx


Ignore:
Timestamp:
09/29/16 09:59:13 (4 years ago)
Author:
Ruslan Ermilov <ru@…>
Branch:
default
Phase:
public
Message:

Stream: style.

Explicitly initialized peer's max_conns for upstreams created with
variables similar to how it's done in http.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/stream/ngx_stream_upstream_round_robin.c

    r6705 r6706  
    348348        peer[0].effective_weight = 1;
    349349        peer[0].current_weight = 0;
     350        peer[0].max_conns = 0;
    350351        peer[0].max_fails = 1;
    351352        peer[0].fail_timeout = 10;
     
    381382            peer[i].effective_weight = 1;
    382383            peer[i].current_weight = 0;
     384            peer[i].max_conns = 0;
    383385            peer[i].max_fails = 1;
    384386            peer[i].fail_timeout = 10;
Note: See TracChangeset for help on using the changeset viewer.