Mercurial > hg > nginx-vendor-0-5
comparison src/http/ngx_http_core_module.c @ 266:251bcd11a5b8 NGINX_0_5_3
nginx 0.5.3
*) Feature: the ngx_http_perl_module supports the $r->status,
$r->log_error, and $r->sleep methods.
*) Feature: the $r->variable method supports variables that do not
exist in nginx configuration.
*) Bugfix: the $r->has_request_body method did not work.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 13 Dec 2006 00:00:00 +0300 |
parents | 2e9c57a5e50a |
children | 052a7b1d40e5 |
comparison
equal
deleted
inserted
replaced
265:3d4634b3b321 | 266:251bcd11a5b8 |
---|---|
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; |