Searched refs:pc (Results 1 - 13 of 13) sorted by relevance

/tldk/app/nginx/src/event/
H A Dngx_event_connect.c15 static ngx_int_t ngx_event_connect_set_transparent(ngx_peer_connection_t *pc,
21 ngx_event_connect_peer(ngx_peer_connection_t *pc) argument
34 rc = pc->get(pc, pc->data);
39 type = (pc->type ? pc->type : SOCK_STREAM);
41 s = ngx_socket(pc->sockaddr->sa_family, type, 0);
43 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pc->log, 0, "%s socket %d",
47 ngx_log_error(NGX_LOG_ALERT, pc
321 ngx_event_connect_set_transparent(ngx_peer_connection_t *pc, ngx_socket_t s) argument
407 ngx_event_get_peer(ngx_peer_connection_t *pc, void *data) argument
[all...]
H A Dngx_event_connect.h24 typedef ngx_int_t (*ngx_event_get_peer_pt)(ngx_peer_connection_t *pc,
26 typedef void (*ngx_event_free_peer_pt)(ngx_peer_connection_t *pc, void *data,
28 typedef void (*ngx_event_notify_peer_pt)(ngx_peer_connection_t *pc,
30 typedef ngx_int_t (*ngx_event_set_peer_session_pt)(ngx_peer_connection_t *pc,
32 typedef void (*ngx_event_save_peer_session_pt)(ngx_peer_connection_t *pc,
74 ngx_int_t ngx_event_connect_peer(ngx_peer_connection_t *pc);
75 ngx_int_t ngx_event_get_peer(ngx_peer_connection_t *pc, void *data);
/tldk/app/nginx/src/http/modules/
H A Dngx_http_upstream_keepalive_module.c57 static ngx_int_t ngx_http_upstream_get_keepalive_peer(ngx_peer_connection_t *pc,
59 static void ngx_http_upstream_free_keepalive_peer(ngx_peer_connection_t *pc,
68 ngx_peer_connection_t *pc, void *data);
69 static void ngx_http_upstream_keepalive_save_session(ngx_peer_connection_t *pc,
208 ngx_http_upstream_get_keepalive_peer(ngx_peer_connection_t *pc, void *data) argument
217 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, pc->log, 0,
222 rc = kp->original_get_peer(pc, kp->data);
239 if (ngx_memn2cmp((u_char *) &item->sockaddr, (u_char *) pc->sockaddr,
240 item->socklen, pc->socklen)
254 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc
272 ngx_http_upstream_free_keepalive_peer(ngx_peer_connection_t *pc, void *data, ngx_uint_t state) argument
449 ngx_http_upstream_keepalive_set_session(ngx_peer_connection_t *pc, void *data) argument
458 ngx_http_upstream_keepalive_save_session(ngx_peer_connection_t *pc, void *data) argument
[all...]
H A Dngx_http_upstream_least_conn_module.c16 ngx_peer_connection_t *pc, void *data);
100 ngx_http_upstream_get_least_conn_peer(ngx_peer_connection_t *pc, void *data) argument
111 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0,
112 "get least conn peer, try: %ui", pc->tries);
115 return ngx_http_upstream_get_round_robin_peer(pc, rrp);
118 pc->cached = 0;
119 pc->connection = NULL;
180 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, pc->log, 0,
187 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, pc->log, 0,
240 pc
[all...]
H A Dngx_http_upstream_ip_hash_module.c30 static ngx_int_t ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc,
149 ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc, void *data) argument
159 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0,
160 "get ip hash peer, try: %ui", pc->tries);
168 return iphp->get_rr_peer(pc, &iphp->rrp);
173 pc->cached = 0;
174 pc->connection = NULL;
201 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, pc->log, 0,
225 return iphp->get_rr_peer(pc, &iphp->rrp);
231 pc
[all...]
H A Dngx_http_upstream_hash_module.c47 static ngx_int_t ngx_http_upstream_get_hash_peer(ngx_peer_connection_t *pc,
58 static ngx_int_t ngx_http_upstream_get_chash_peer(ngx_peer_connection_t *pc,
163 ngx_http_upstream_get_hash_peer(ngx_peer_connection_t *pc, void *data) argument
176 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0,
177 "get hash peer, try: %ui", pc->tries);
183 return hp->get_rr_peer(pc, &hp->rrp);
188 pc->cached = 0;
189 pc->connection = NULL;
231 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, pc->log, 0,
255 return hp->get_rr_peer(pc,
487 ngx_http_upstream_get_chash_peer(ngx_peer_connection_t *pc, void *data) argument
[all...]
/tldk/app/nginx/src/stream/
H A Dngx_stream_upstream_least_conn_module.c16 ngx_peer_connection_t *pc, void *data);
97 ngx_stream_upstream_get_least_conn_peer(ngx_peer_connection_t *pc, void *data) argument
108 ngx_log_debug1(NGX_LOG_DEBUG_STREAM, pc->log, 0,
109 "get least conn peer, try: %ui", pc->tries);
112 return ngx_stream_upstream_get_round_robin_peer(pc, rrp);
115 pc->connection = NULL;
176 ngx_log_debug0(NGX_LOG_DEBUG_STREAM, pc->log, 0,
183 ngx_log_debug0(NGX_LOG_DEBUG_STREAM, pc->log, 0,
236 pc->sockaddr = best->sockaddr;
237 pc
[all...]
H A Dngx_stream_proxy_module.c94 static void ngx_stream_proxy_ssl_handshake(ngx_connection_t *pc);
653 ngx_connection_t *c, *pc; local
708 pc = u->peer.connection;
710 pc->data = s;
711 pc->log = c->log;
712 pc->pool = c->pool;
713 pc->read->log = c->log;
714 pc->write->log = c->log;
721 pc->read->handler = ngx_stream_proxy_connect_handler;
722 pc
734 ngx_connection_t *c, *pc; local
913 ngx_connection_t *c, *pc; local
1006 ngx_connection_t *pc; local
1056 ngx_stream_proxy_ssl_handshake(ngx_connection_t *pc) argument
1296 ngx_connection_t *c, *pc; local
1462 ngx_connection_t *c, *pc, *src, *dst; local
1670 ngx_connection_t *pc; local
1731 ngx_connection_t *pc; local
1789 ngx_connection_t *pc; local
[all...]
H A Dngx_stream_upstream_round_robin.c20 ngx_peer_connection_t *pc, void *data, ngx_uint_t state);
25 ngx_peer_connection_t *pc, void *data);
27 ngx_peer_connection_t *pc, void *data);
29 ngx_peer_connection_t *pc, void *data);
30 static void ngx_stream_upstream_empty_save_session(ngx_peer_connection_t *pc,
427 ngx_stream_upstream_get_round_robin_peer(ngx_peer_connection_t *pc, void *data) argument
436 ngx_log_debug1(NGX_LOG_DEBUG_STREAM, pc->log, 0,
437 "get rr peer, try: %ui", pc->tries);
439 pc->connection = NULL;
467 ngx_log_debug2(NGX_LOG_DEBUG_STREAM, pc
595 ngx_stream_upstream_free_round_robin_peer(ngx_peer_connection_t *pc, void *data, ngx_uint_t state) argument
666 ngx_stream_upstream_notify_round_robin_peer(ngx_peer_connection_t *pc, void *data, ngx_uint_t type) argument
694 ngx_stream_upstream_set_round_robin_peer_session(ngx_peer_connection_t *pc, void *data) argument
760 ngx_stream_upstream_save_round_robin_peer_session(ngx_peer_connection_t *pc, void *data) argument
862 ngx_stream_upstream_empty_set_session(ngx_peer_connection_t *pc, void *data) argument
869 ngx_stream_upstream_empty_save_session(ngx_peer_connection_t *pc, void *data) argument
[all...]
H A Dngx_stream_upstream_hash_module.c47 static ngx_int_t ngx_stream_upstream_get_hash_peer(ngx_peer_connection_t *pc,
58 static ngx_int_t ngx_stream_upstream_get_chash_peer(ngx_peer_connection_t *pc,
163 ngx_stream_upstream_get_hash_peer(ngx_peer_connection_t *pc, void *data) argument
176 ngx_log_debug1(NGX_LOG_DEBUG_STREAM, pc->log, 0,
177 "get hash peer, try: %ui", pc->tries);
183 return hp->get_rr_peer(pc, &hp->rrp);
188 pc->connection = NULL;
230 ngx_log_debug2(NGX_LOG_DEBUG_STREAM, pc->log, 0,
254 return hp->get_rr_peer(pc, &hp->rrp);
260 pc
489 ngx_stream_upstream_get_chash_peer(ngx_peer_connection_t *pc, void *data) argument
[all...]
H A Dngx_stream_upstream_round_robin.h140 ngx_int_t ngx_stream_upstream_get_round_robin_peer(ngx_peer_connection_t *pc,
142 void ngx_stream_upstream_free_round_robin_peer(ngx_peer_connection_t *pc,
/tldk/app/nginx/src/http/
H A Dngx_http_upstream_round_robin.h142 ngx_int_t ngx_http_upstream_get_round_robin_peer(ngx_peer_connection_t *pc,
144 void ngx_http_upstream_free_round_robin_peer(ngx_peer_connection_t *pc,
149 ngx_http_upstream_set_round_robin_peer_session(ngx_peer_connection_t *pc,
151 void ngx_http_upstream_save_round_robin_peer_session(ngx_peer_connection_t *pc,
H A Dngx_http_upstream_round_robin.c22 static ngx_int_t ngx_http_upstream_empty_set_session(ngx_peer_connection_t *pc,
24 static void ngx_http_upstream_empty_save_session(ngx_peer_connection_t *pc,
417 ngx_http_upstream_get_round_robin_peer(ngx_peer_connection_t *pc, void *data) argument
426 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0,
427 "get rr peer, try: %ui", pc->tries);
429 pc->cached = 0;
430 pc->connection = NULL;
458 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, pc->log, 0,
463 pc->sockaddr = peer->sockaddr;
464 pc
586 ngx_http_upstream_free_round_robin_peer(ngx_peer_connection_t *pc, void *data, ngx_uint_t state) argument
662 ngx_http_upstream_set_round_robin_peer_session(ngx_peer_connection_t *pc, void *data) argument
728 ngx_http_upstream_save_round_robin_peer_session(ngx_peer_connection_t *pc, void *data) argument
830 ngx_http_upstream_empty_set_session(ngx_peer_connection_t *pc, void *data) argument
837 ngx_http_upstream_empty_save_session(ngx_peer_connection_t *pc, void *data) argument
[all...]

Completed in 12 milliseconds