comparison src/core/ngx_file.c @ 50:72eb30262aac NGINX_0_1_25

nginx 0.1.25 *) Bugfix: nginx did run on Linux parisc. *) Feature: nginx now does not start under FreeBSD if the sysctl kern.ipc.somaxconn value is too big. *) Bugfix: if a request was internally redirected by the ngx_http_index_module module to the ngx_http_proxy_module or ngx_http_fastcgi_module modules, then the index file was not closed after request completion. *) Feature: the "proxy_pass" can be used in location with regular expression. *) Feature: the ngx_http_rewrite_filter_module module supports the condition like "if ($HTTP_USER_AGENT ~ MSIE)". *) Bugfix: nginx started too slow if the large number of addresses and text values were used in the "geo" directive. *) Change: a variable name must be declared as "$name" in the "geo" directive. The previous variant without "$" is still supported, but will be removed soon. *) Feature: the "%{VARIABLE}v" logging parameter. *) Feature: the "set $name value" directive. *) Bugfix: gcc 4.0 compatibility. *) Feature: the --with-openssl-opt=OPTIONS autoconfiguration directive.
author Igor Sysoev <http://sysoev.ru>
date Sat, 19 Mar 2005 00:00:00 +0300
parents 6cfc63e68377
children b55cbf18157e
comparison
equal deleted inserted replaced
49:93dabbc9efb9 50:72eb30262aac
41 ngx_err_t err; 41 ngx_err_t err;
42 ngx_atomic_uint_t n; 42 ngx_atomic_uint_t n;
43 43
44 file->name.len = path->name.len + 1 + path->len + NGX_ATOMIC_T_LEN; 44 file->name.len = path->name.len + 1 + path->len + NGX_ATOMIC_T_LEN;
45 45
46 if (!(file->name.data = ngx_palloc(pool, file->name.len + 1))) { 46 file->name.data = ngx_palloc(pool, file->name.len + 1);
47 if (file->name.data == NULL) {
47 return NGX_ERROR; 48 return NGX_ERROR;
48 } 49 }
49 50
50 #if 0 51 #if 0
51 for (i = 0; i < file->name.len; i++) { 52 for (i = 0; i < file->name.len; i++) {
201 202
202 if (*slot) { 203 if (*slot) {
203 return "is duplicate"; 204 return "is duplicate";
204 } 205 }
205 206
206 if (!(path = ngx_pcalloc(cf->pool, sizeof(ngx_path_t)))) { 207 path = ngx_pcalloc(cf->pool, sizeof(ngx_path_t));
208 if (path == NULL) {
207 return NGX_CONF_ERROR; 209 return NGX_CONF_ERROR;
208 } 210 }
209 211
210 value = cf->args->elts; 212 value = cf->args->elts;
211 213
290 292
291 return NGX_OK; 293 return NGX_OK;
292 } 294 }
293 } 295 }
294 296
295 if (!(p = ngx_array_push(&cf->cycle->pathes))) { 297 p = ngx_array_push(&cf->cycle->pathes);
298 if (p == NULL) {
296 return NGX_ERROR; 299 return NGX_ERROR;
297 } 300 }
298 301
299 *p = path; 302 *p = path;
300 303