Mercurial > hg > nginx
comparison src/http/ngx_http.c @ 56:058f01f78761
nginx-0.0.1-2003-01-29-20:02:48 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 29 Jan 2003 17:02:48 +0000 |
parents | cad6c2f43283 |
children | a499e0d1f16e |
comparison
equal
deleted
inserted
replaced
55:cad6c2f43283 | 56:058f01f78761 |
---|---|
346 ls->handler = ngx_http_init_connection; | 346 ls->handler = ngx_http_init_connection; |
347 ls->log = cf->log; | 347 ls->log = cf->log; |
348 ls->ctx = ctx; | 348 ls->ctx = ctx; |
349 ls->servers = &in_port[p]; | 349 ls->servers = &in_port[p]; |
350 | 350 |
351 #if 0 | |
351 if (in_port[p].addr.nelts == 1) { | 352 if (in_port[p].addr.nelts == 1) { |
352 in_addr = (ngx_http_in_addr_t *) in_port[p].addr.elts; | 353 in_addr = (ngx_http_in_addr_t *) in_port[p].addr.elts; |
353 | 354 |
354 /* if there is the single address for this port and no virtual | 355 /* if there is the single address for this port and no virtual |
355 name servers so we do not need to check addresses | 356 name servers so we do not need to check addresses |
357 if (in_addr[a].names.nelts == 0) { | 358 if (in_addr[a].names.nelts == 0) { |
358 ls->ctx = in_addr->core_srv_conf->ctx; | 359 ls->ctx = in_addr->core_srv_conf->ctx; |
359 ls->servers = NULL; | 360 ls->servers = NULL; |
360 } | 361 } |
361 } | 362 } |
363 #endif | |
362 ngx_log_debug(cf->log, "ls ctx: %d:%08x" _ in_port[p].port _ ls->ctx); | 364 ngx_log_debug(cf->log, "ls ctx: %d:%08x" _ in_port[p].port _ ls->ctx); |
363 } | 365 } |
364 } | 366 } |
367 | |
368 /* DEBUG STUFF */ | |
369 in_port = (ngx_http_in_port_t *) in_ports.elts; | |
370 for (p = 0; p < in_ports.nelts; p++) { | |
371 ngx_log_debug(cf->log, "port: %d" _ in_port[p].port); | |
372 in_addr = (ngx_http_in_addr_t *) in_port[p].addr.elts; | |
373 for (a = 0; a < in_port[p].addr.nelts; a++) { | |
374 char ip[20]; | |
375 ngx_inet_ntop(AF_INET, &in_addr[a].addr, ip, 20); | |
376 ngx_log_debug(cf->log, "%s %08x" _ ip _ in_addr[a].core_srv_conf); | |
377 } | |
378 } | |
379 /**/ | |
365 | 380 |
366 return NGX_CONF_OK; | 381 return NGX_CONF_OK; |
367 } | 382 } |
368 | 383 |
369 | 384 |