comparison src/http/ngx_http.c @ 423:fda5987b188d

nginx-0.0.10-2004-09-13-20:18:09 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 13 Sep 2004 16:18:09 +0000
parents 47709bff4468
children da8c5707af39
comparison
equal deleted inserted replaced
422:edaefb2a20fc 423:fda5987b188d
416 ngx_push_array(&in_ports), 416 ngx_push_array(&in_ports),
417 NGX_CONF_ERROR); 417 NGX_CONF_ERROR);
418 418
419 in_port->port = lscf[l].port; 419 in_port->port = lscf[l].port;
420 420
421 ngx_test_null(in_port->port_name.data, ngx_palloc(cf->pool, 7), 421 ngx_test_null(in_port->port_text.data, ngx_palloc(cf->pool, 7),
422 NGX_CONF_ERROR); 422 NGX_CONF_ERROR);
423 in_port->port_name.len = ngx_snprintf((char *) 423 in_port->port_text.len = ngx_snprintf((char *)
424 in_port->port_name.data, 424 in_port->port_text.data,
425 7, ":%d", 425 7, ":%d",
426 in_port->port); 426 in_port->port);
427 427
428 /* create list of the addresses that bound to this port ... */ 428 /* create list of the addresses that bound to this port ... */
429 429
547 ngx_palloc(cf->pool, 547 ngx_palloc(cf->pool,
548 sizeof(ngx_http_in_port_t)), 548 sizeof(ngx_http_in_port_t)),
549 NGX_CONF_ERROR); 549 NGX_CONF_ERROR);
550 550
551 inport->port = in_port[p].port; 551 inport->port = in_port[p].port;
552 inport->port_name = in_port[p].port_name; 552 inport->port_text = in_port[p].port_text;
553 553
554 /* init list of the addresses ... */ 554 /* init list of the addresses ... */
555 555
556 ngx_init_array(inport->addrs, cf->pool, 1, 556 ngx_init_array(inport->addrs, cf->pool, 1,
557 sizeof(ngx_http_in_addr_t), 557 sizeof(ngx_http_in_addr_t),