How can i get ip and port under forward proxy
honwel
nginx-forum at nginx.us
Thu Jun 6 01:37:52 UTC 2013
static void
457 ngx_http_upstream_init_request(ngx_http_request_t *r)
........................................
498 #endif
499
500 u->store = (u->conf->store || u->conf->store_lengths);
501
502 if (!u->store && !r->post_action && !u->conf->ignore_client_abort)
{
503 r->read_event_handler =
ngx_http_upstream_rd_check_broken_connection;
504 r->write_event_handler =
ngx_http_upstream_wr_check_broken_connection;
505 }
506
507 if (r->request_body) {
508 u->request_bufs = r->request_body->bufs;
509 }
510
511 if (u->create_request(r) != NGX_OK) {
512 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
513 return;
514 }
515
516 u->peer.local = u->conf->local;
517 /* init */
518 u->peer.local_sockaddr = ngx_palloc(r->pool, NGX_SOCKADDRLEN);
....................
650 return;
651 }
652
653 ngx_http_upstream_connect(r, u);
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239883,239904#msg-239904
More information about the nginx
mailing list