comparison src/http/modules/perl/ngx_http_perl_module.c @ 496:f39b9e29530d NGINX_0_8_0

nginx 0.8.0 *) Feature: the "keepalive_requests" directive. *) Feature: the "limit_rate_after" directive. Thanks to Ivan Debnar. *) Bugfix: XLST filter did not work in subrequests. *) Bugfix: in relative paths handling in nginx/Windows. *) Bugfix: in proxy_store, fastcgi_store, proxy_cache, and fastcgi_cache in nginx/Windows. *) Bugfix: in memory allocation error handling. Thanks to Maxim Dounin and Kirill A. Korinskiy.
author Igor Sysoev <http://sysoev.ru>
date Tue, 02 Jun 2009 00:00:00 +0400
parents 549994537f15
children 86dad910eeb6
comparison
equal deleted inserted replaced
495:6d9fb4461113 496:f39b9e29530d
782 { 782 {
783 ngx_http_perl_main_conf_t *pmcf; 783 ngx_http_perl_main_conf_t *pmcf;
784 784
785 pmcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_perl_main_conf_t)); 785 pmcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_perl_main_conf_t));
786 if (pmcf == NULL) { 786 if (pmcf == NULL) {
787 return NGX_CONF_ERROR; 787 return NULL;
788 } 788 }
789 789
790 if (ngx_array_init(&pmcf->requires, cf->pool, 1, sizeof(u_char *)) 790 if (ngx_array_init(&pmcf->requires, cf->pool, 1, sizeof(u_char *))
791 != NGX_OK) 791 != NGX_OK)
792 { 792 {
867 { 867 {
868 ngx_http_perl_loc_conf_t *plcf; 868 ngx_http_perl_loc_conf_t *plcf;
869 869
870 plcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_perl_loc_conf_t)); 870 plcf = ngx_pcalloc(cf->pool, sizeof(ngx_http_perl_loc_conf_t));
871 if (plcf == NULL) { 871 if (plcf == NULL) {
872 return NGX_CONF_ERROR; 872 return NULL;
873 } 873 }
874 874
875 /* 875 /*
876 * set by ngx_pcalloc(): 876 * set by ngx_pcalloc():
877 * 877 *