~ubuntu-branches/ubuntu/trusty/nginx/trusty-proposed

« back to all changes in this revision

Viewing changes to src/http/ngx_http_upstream_round_robin.h

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2013-04-25 12:51:45 UTC
  • mfrom: (1.3.28)
  • mto: (1.3.29) (15.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 64.
  • Revision ID: package-import@ubuntu.com-20130425125145-ugl0wor6bq0u5eae
Tags: upstream-1.4.0
ImportĀ upstreamĀ versionĀ 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
3
 * Copyright (C) Igor Sysoev
 
4
 * Copyright (C) Nginx, Inc.
4
5
 */
5
6
 
6
7
 
19
20
    ngx_str_t                       name;
20
21
 
21
22
    ngx_int_t                       current_weight;
 
23
    ngx_int_t                       effective_weight;
22
24
    ngx_int_t                       weight;
23
25
 
24
26
    ngx_uint_t                      fails;
25
27
    time_t                          accessed;
 
28
    time_t                          checked;
26
29
 
27
30
    ngx_uint_t                      max_fails;
28
31
    time_t                          fail_timeout;
38
41
typedef struct ngx_http_upstream_rr_peers_s  ngx_http_upstream_rr_peers_t;
39
42
 
40
43
struct ngx_http_upstream_rr_peers_s {
41
 
    ngx_uint_t                      single;        /* unsigned  single:1; */
42
44
    ngx_uint_t                      number;
43
 
    ngx_uint_t                      last_cached;
44
45
 
45
46
 /* ngx_mutex_t                    *mutex; */
46
 
    ngx_connection_t              **cached;
 
47
 
 
48
    ngx_uint_t                      total_weight;
 
49
 
 
50
    unsigned                        single:1;
 
51
    unsigned                        weighted:1;
47
52
 
48
53
    ngx_str_t                      *name;
49
54
 
81
86
#endif
82
87
 
83
88
 
84
 
 
85
89
#endif /* _NGX_HTTP_UPSTREAM_ROUND_ROBIN_H_INCLUDED_ */