Searched refs:rrp (Results 1 - 7 of 7) sorted by relevance

/tldk/app/nginx/src/stream/
H A Dngx_stream_upstream_round_robin.c18 ngx_stream_upstream_rr_peer_data_t *rrp);
254 ngx_stream_upstream_rr_peer_data_t *rrp; local
256 rrp = s->upstream->peer.data;
258 if (rrp == NULL) {
259 rrp = ngx_palloc(s->connection->pool,
261 if (rrp == NULL) {
265 s->upstream->peer.data = rrp;
268 rrp->peers = us->peer.data;
269 rrp->current = NULL;
270 rrp
317 ngx_stream_upstream_rr_peer_data_t *rrp; local
429 ngx_stream_upstream_rr_peer_data_t *rrp = data; local
517 ngx_stream_upstream_get_peer(ngx_stream_upstream_rr_peer_data_t *rrp) argument
598 ngx_stream_upstream_rr_peer_data_t *rrp = data; local
669 ngx_stream_upstream_rr_peer_data_t *rrp = data; local
697 ngx_stream_upstream_rr_peer_data_t *rrp = data; local
763 ngx_stream_upstream_rr_peer_data_t *rrp = data; local
[all...]
H A Dngx_stream_upstream_least_conn_module.c99 ngx_stream_upstream_rr_peer_data_t *rrp = data; local
111 if (rrp->peers->single) {
112 return ngx_stream_upstream_get_round_robin_peer(pc, rrp);
119 peers = rrp->peers;
138 if (rrp->tried[n] & m) {
193 if (rrp->tried[n] & m) {
242 rrp->current = best;
247 rrp->tried[n] |= m;
259 rrp->peers = peers->next;
261 n = (rrp
[all...]
H A Dngx_stream_upstream_hash_module.c33 ngx_stream_upstream_rr_peer_data_t rrp; member in struct:__anon474
134 s->upstream->peer.data = &hp->rrp;
179 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);
183 return hp->get_rr_peer(pc, &hp->rrp);
213 w = hp->hash % hp->rrp.peers->total_weight;
214 peer = hp->rrp.peers->peer;
226 if (hp->rrp.tried[n] & m) {
253 ngx_stream_upstream_rr_peers_unlock(hp->rrp
[all...]
/tldk/app/nginx/src/http/
H A Dngx_http_upstream_round_robin.c18 ngx_http_upstream_rr_peer_data_t *rrp);
248 ngx_http_upstream_rr_peer_data_t *rrp; local
250 rrp = r->upstream->peer.data;
252 if (rrp == NULL) {
253 rrp = ngx_palloc(r->pool, sizeof(ngx_http_upstream_rr_peer_data_t));
254 if (rrp == NULL) {
258 r->upstream->peer.data = rrp;
261 rrp->peers = us->peer.data;
262 rrp->current = NULL;
263 rrp
309 ngx_http_upstream_rr_peer_data_t *rrp; local
419 ngx_http_upstream_rr_peer_data_t *rrp = data; local
508 ngx_http_upstream_get_peer(ngx_http_upstream_rr_peer_data_t *rrp) argument
589 ngx_http_upstream_rr_peer_data_t *rrp = data; local
665 ngx_http_upstream_rr_peer_data_t *rrp = data; local
731 ngx_http_upstream_rr_peer_data_t *rrp = data; local
[all...]
/tldk/app/nginx/src/http/modules/
H A Dngx_http_upstream_ip_hash_module.c15 ngx_http_upstream_rr_peer_data_t rrp; member in struct:__anon242
111 r->upstream->peer.data = &iphp->rrp;
164 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);
168 return iphp->get_rr_peer(pc, &iphp->rrp);
184 w = hash % iphp->rrp.peers->total_weight;
185 peer = iphp->rrp.peers->peer;
197 if (iphp->rrp.tried[n] & m) {
224 ngx_http_upstream_rr_peers_unlock(iphp->rrp
[all...]
H A Dngx_http_upstream_least_conn_module.c102 ngx_http_upstream_rr_peer_data_t *rrp = data; local
114 if (rrp->peers->single) {
115 return ngx_http_upstream_get_round_robin_peer(pc, rrp);
123 peers = rrp->peers;
142 if (rrp->tried[n] & m) {
197 if (rrp->tried[n] & m) {
246 rrp->current = best;
251 rrp->tried[n] |= m;
263 rrp->peers = peers->next;
265 n = (rrp
[all...]
H A Dngx_http_upstream_hash_module.c33 ngx_http_upstream_rr_peer_data_t rrp; member in struct:__anon240
135 r->upstream->peer.data = &hp->rrp;
179 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);
183 return hp->get_rr_peer(pc, &hp->rrp);
214 w = hp->hash % hp->rrp.peers->total_weight;
215 peer = hp->rrp.peers->peer;
227 if (hp->rrp.tried[n] & m) {
254 ngx_http_upstream_rr_peers_unlock(hp->rrp
[all...]

Completed in 6 milliseconds