Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 906:a0310ac2814f
rewritten upstream
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 12 Dec 2006 16:46:16 +0000 |
parents | 9ddb57468082 |
children | af57bfd77b7f |
comparison
equal
deleted
inserted
replaced
905:be52cfdb3e31 | 906:a0310ac2814f |
---|---|
2388 | 2388 |
2389 ngx_memzero(&u, sizeof(ngx_url_t)); | 2389 ngx_memzero(&u, sizeof(ngx_url_t)); |
2390 | 2390 |
2391 u.url = value[1]; | 2391 u.url = value[1]; |
2392 u.listen = 1; | 2392 u.listen = 1; |
2393 u.default_portn = 80; | 2393 u.default_port = 80; |
2394 | 2394 |
2395 if (ngx_parse_url(cf, &u) != NGX_OK) { | 2395 if (ngx_parse_url(cf, &u) != NGX_OK) { |
2396 if (u.err) { | 2396 if (u.err) { |
2397 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 2397 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
2398 "%s in \"%V\" of the \"listen\" directive", | 2398 "%s in \"%V\" of the \"listen\" directive", |
2409 | 2409 |
2410 ngx_memzero(ls, sizeof(ngx_http_listen_t)); | 2410 ngx_memzero(ls, sizeof(ngx_http_listen_t)); |
2411 | 2411 |
2412 ls->family = AF_INET; | 2412 ls->family = AF_INET; |
2413 ls->addr = u.addr.in_addr; | 2413 ls->addr = u.addr.in_addr; |
2414 ls->port = u.portn; | 2414 ls->port = u.port; |
2415 ls->file_name = cf->conf_file->file.name; | 2415 ls->file_name = cf->conf_file->file.name; |
2416 ls->line = cf->conf_file->line; | 2416 ls->line = cf->conf_file->line; |
2417 ls->conf.backlog = -1; | 2417 ls->conf.backlog = -1; |
2418 ls->conf.rcvbuf = -1; | 2418 ls->conf.rcvbuf = -1; |
2419 ls->conf.sndbuf = -1; | 2419 ls->conf.sndbuf = -1; |