comparison src/http/ngx_http_core_module.c @ 388:6de24473fa70 NGINX_0_7_6

nginx 0.7.6 *) Bugfix: now if variables are used in the "access_log" directive a request root existence is always tested. *) Bugfix: the ngx_http_flv_module did not support several values in a query string.
author Igor Sysoev <http://sysoev.ru>
date Mon, 07 Jul 2008 00:00:00 +0400
parents 12defd37f578
children 0b6053502c55
comparison
equal deleted inserted replaced
387:4cde8b18f2c9 388:6de24473fa70
3497 3497
3498 if (ngx_strncmp(value[i].data, "max=", 4) == 0) { 3498 if (ngx_strncmp(value[i].data, "max=", 4) == 0) {
3499 3499
3500 max = ngx_atoi(value[i].data + 4, value[i].len - 4); 3500 max = ngx_atoi(value[i].data + 4, value[i].len - 4);
3501 if (max == NGX_ERROR) { 3501 if (max == NGX_ERROR) {
3502 return NGX_CONF_ERROR; 3502 goto failed;
3503 } 3503 }
3504 3504
3505 continue; 3505 continue;
3506 } 3506 }
3507 3507
3510 s.len = value[i].len - 9; 3510 s.len = value[i].len - 9;
3511 s.data = value[i].data + 9; 3511 s.data = value[i].data + 9;
3512 3512
3513 inactive = ngx_parse_time(&s, 1); 3513 inactive = ngx_parse_time(&s, 1);
3514 if (inactive < 0) { 3514 if (inactive < 0) {
3515 return NGX_CONF_ERROR; 3515 goto failed;
3516 } 3516 }
3517 3517
3518 continue; 3518 continue;
3519 } 3519 }
3520 3520
3522 3522
3523 lcf->open_file_cache = NULL; 3523 lcf->open_file_cache = NULL;
3524 3524
3525 continue; 3525 continue;
3526 } 3526 }
3527
3528 failed:
3527 3529
3528 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 3530 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
3529 "invalid \"open_file_cache\" parameter \"%V\"", 3531 "invalid \"open_file_cache\" parameter \"%V\"",
3530 &value[i]); 3532 &value[i]);
3531 return NGX_CONF_ERROR; 3533 return NGX_CONF_ERROR;