Searched refs:peers (Results 1 - 11 of 11) sorted by relevance

/tldk/app/nginx/src/stream/
H A Dngx_stream_upstream_round_robin.h83 #define ngx_stream_upstream_rr_peers_rlock(peers) \
85 if (peers->shpool) { \
86 ngx_rwlock_rlock(&peers->rwlock); \
89 #define ngx_stream_upstream_rr_peers_wlock(peers) \
91 if (peers->shpool) { \
92 ngx_rwlock_wlock(&peers->rwlock); \
95 #define ngx_stream_upstream_rr_peers_unlock(peers) \
97 if (peers->shpool) { \
98 ngx_rwlock_unlock(&peers->rwlock); \
102 #define ngx_stream_upstream_rr_peer_lock(peers, pee
127 ngx_stream_upstream_rr_peers_t *peers; member in struct:__anon476
[all...]
H A Dngx_stream_upstream_round_robin.c44 ngx_stream_upstream_rr_peers_t *peers, *backup; local
70 peers = ngx_pcalloc(cf->pool, sizeof(ngx_stream_upstream_rr_peers_t));
71 if (peers == NULL) {
80 peers->single = (n == 1);
81 peers->number = n;
82 peers->weighted = (w != n);
83 peers->total_weight = w;
84 peers->name = &us->host;
87 peerp = &peers->peer;
113 us->peer.data = peers;
316 ngx_stream_upstream_rr_peers_t *peers; local
434 ngx_stream_upstream_rr_peers_t *peers; local
708 ngx_stream_upstream_rr_peers_t *peers; local
770 ngx_stream_upstream_rr_peers_t *peers; local
[all...]
H A Dngx_stream_upstream_zone_module.c121 ngx_stream_upstream_rr_peers_t *peers, **peersp; local
130 peers = shpool->data;
139 uscf->peer.data = peers;
140 peers = peers->zone_next;
157 /* copy peers to shared memory */
168 peers = ngx_stream_upstream_zone_copy_peers(shpool, uscf);
169 if (peers == NULL) {
173 *peersp = peers;
174 peersp = &peers
186 ngx_stream_upstream_rr_peers_t *peers, *backup; local
[all...]
H A Dngx_stream_upstream_least_conn_module.c106 ngx_stream_upstream_rr_peers_t *peers; local
111 if (rrp->peers->single) {
119 peers = rrp->peers;
121 ngx_stream_upstream_rr_peers_wlock(peers);
131 for (peer = peers->peer, i = 0;
159 * multiple peers with the same number of connections, select
249 ngx_stream_upstream_rr_peers_unlock(peers);
255 if (peers->next) {
259 rrp->peers
[all...]
H A Dngx_stream_upstream_hash_module.c179 ngx_stream_upstream_rr_peers_wlock(hp->rrp.peers);
181 if (hp->tries > 20 || hp->rrp.peers->single) {
182 ngx_stream_upstream_rr_peers_unlock(hp->rrp.peers);
213 w = hp->hash % hp->rrp.peers->total_weight;
214 peer = hp->rrp.peers->peer;
253 ngx_stream_upstream_rr_peers_unlock(hp->rrp.peers);
270 ngx_stream_upstream_rr_peers_unlock(hp->rrp.peers);
288 ngx_stream_upstream_rr_peers_t *peers; local
302 peers = us->peer.data;
303 npoints = peers
[all...]
/tldk/app/nginx/src/http/
H A Dngx_http_upstream_round_robin.h85 #define ngx_http_upstream_rr_peers_rlock(peers) \
87 if (peers->shpool) { \
88 ngx_rwlock_rlock(&peers->rwlock); \
91 #define ngx_http_upstream_rr_peers_wlock(peers) \
93 if (peers->shpool) { \
94 ngx_rwlock_wlock(&peers->rwlock); \
97 #define ngx_http_upstream_rr_peers_unlock(peers) \
99 if (peers->shpool) { \
100 ngx_rwlock_unlock(&peers->rwlock); \
104 #define ngx_http_upstream_rr_peer_lock(peers, pee
129 ngx_http_upstream_rr_peers_t *peers; member in struct:__anon331
[all...]
H A Dngx_http_upstream_round_robin.c38 ngx_http_upstream_rr_peers_t *peers, *backup; local
64 peers = ngx_pcalloc(cf->pool, sizeof(ngx_http_upstream_rr_peers_t));
65 if (peers == NULL) {
74 peers->single = (n == 1);
75 peers->number = n;
76 peers->weighted = (w != n);
77 peers->total_weight = w;
78 peers->name = &us->host;
81 peerp = &peers->peer;
107 us->peer.data = peers;
308 ngx_http_upstream_rr_peers_t *peers; local
424 ngx_http_upstream_rr_peers_t *peers; local
676 ngx_http_upstream_rr_peers_t *peers; local
738 ngx_http_upstream_rr_peers_t *peers; local
[all...]
/tldk/app/nginx/src/http/modules/
H A Dngx_http_upstream_zone_module.c124 ngx_http_upstream_rr_peers_t *peers, **peersp; local
133 peers = shpool->data;
142 uscf->peer.data = peers;
143 peers = peers->zone_next;
160 /* copy peers to shared memory */
171 peers = ngx_http_upstream_zone_copy_peers(shpool, uscf);
172 if (peers == NULL) {
176 *peersp = peers;
177 peersp = &peers
189 ngx_http_upstream_rr_peers_t *peers, *backup; local
[all...]
H A Dngx_http_upstream_least_conn_module.c109 ngx_http_upstream_rr_peers_t *peers; local
114 if (rrp->peers->single) {
123 peers = rrp->peers;
125 ngx_http_upstream_rr_peers_wlock(peers);
135 for (peer = peers->peer, i = 0;
163 * multiple peers with the same number of connections, select
253 ngx_http_upstream_rr_peers_unlock(peers);
259 if (peers->next) {
263 rrp->peers
[all...]
H A Dngx_http_upstream_hash_module.c179 ngx_http_upstream_rr_peers_wlock(hp->rrp.peers);
181 if (hp->tries > 20 || hp->rrp.peers->single) {
182 ngx_http_upstream_rr_peers_unlock(hp->rrp.peers);
214 w = hp->hash % hp->rrp.peers->total_weight;
215 peer = hp->rrp.peers->peer;
254 ngx_http_upstream_rr_peers_unlock(hp->rrp.peers);
271 ngx_http_upstream_rr_peers_unlock(hp->rrp.peers);
288 ngx_http_upstream_rr_peers_t *peers; local
302 peers = us->peer.data;
303 npoints = peers
[all...]
H A Dngx_http_upstream_ip_hash_module.c164 ngx_http_upstream_rr_peers_wlock(iphp->rrp.peers);
166 if (iphp->tries > 20 || iphp->rrp.peers->single) {
167 ngx_http_upstream_rr_peers_unlock(iphp->rrp.peers);
184 w = hash % iphp->rrp.peers->total_weight;
185 peer = iphp->rrp.peers->peer;
224 ngx_http_upstream_rr_peers_unlock(iphp->rrp.peers);
241 ngx_http_upstream_rr_peers_unlock(iphp->rrp.peers);

Completed in 8 milliseconds