comparison src/http/ngx_http.c @ 291:117ccc7c4055

nginx-0.0.3-2004-03-16-16:35:20 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 16 Mar 2004 13:35:20 +0000
parents 87e73f067470
children 11ff50a35d6d
comparison
equal deleted inserted replaced
290:87e73f067470 291:117ccc7c4055
494 NGX_CONF_ERROR); 494 NGX_CONF_ERROR);
495 495
496 ls->addr_text.len = 496 ls->addr_text.len =
497 ngx_snprintf((char *) ls->addr_text.data 497 ngx_snprintf((char *) ls->addr_text.data
498 + ngx_inet_ntop(AF_INET, 498 + ngx_inet_ntop(AF_INET,
499 (u_char *) 499 &in_addr[a].addr,
500 &in_addr[a].addr,
501 ls->addr_text.data, 500 ls->addr_text.data,
502 INET_ADDRSTRLEN), 501 INET_ADDRSTRLEN),
503 6, ":%d", in_port[p].port); 502 6, ":%d", in_port[p].port);
504 503
505 ls->fd = (ngx_socket_t) -1; 504 ls->fd = (ngx_socket_t) -1;
595 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, cf->log, 0, 594 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, cf->log, 0,
596 "port: %d %08x", in_port[p].port, &in_port[p]); 595 "port: %d %08x", in_port[p].port, &in_port[p]);
597 in_addr = in_port[p].addrs.elts; 596 in_addr = in_port[p].addrs.elts;
598 for (a = 0; a < in_port[p].addrs.nelts; a++) { 597 for (a = 0; a < in_port[p].addrs.nelts; a++) {
599 u_char ip[20]; 598 u_char ip[20];
600 ngx_inet_ntop(AF_INET, (u_char *) &in_addr[a].addr, ip, 20); 599 ngx_inet_ntop(AF_INET, &in_addr[a].addr, ip, 20);
601 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, cf->log, 0, 600 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, cf->log, 0,
602 "%s %08x", ip, in_addr[a].core_srv_conf); 601 "%s %08x", ip, in_addr[a].core_srv_conf);
603 s_name = in_addr[a].names.elts; 602 s_name = in_addr[a].names.elts;
604 for (n = 0; n < in_addr[a].names.nelts; n++) { 603 for (n = 0; n < in_addr[a].names.nelts; n++) {
605 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, cf->log, 0, 604 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, cf->log, 0,