comparison src/http/modules/perl/ngx_http_perl_module.c @ 506:b9fdcaf2062b NGINX_0_7_65

nginx 0.7.65 *) Security: now nginx/Windows ignores trailing spaces in URI. Thanks to Dan Crowley, Core Security Technologies. *) Security: now nginx/Windows ignores short files names. Thanks to Dan Crowley, Core Security Technologies. *) Change: now the "009" status code is written to an access log for proxied HTTP/0.9 responses. *) Change: now the default buffer size of the "large_client_header_buffers" directive is 8K. Thanks to Andrew Cholakian. *) Change: now default SSL ciphers are "HIGH:!ADH:!MD5". *) Change: now SSLv2 protocol is disabled by default. *) Change: now $host variable value is always low case. *) Feature: the conf/fastcgi.conf for simple FastCGI configurations. *) Feature: now URI part is not required a "proxy_pass" directive if variables are used. *) Feature: the $ssl_session_id variable. *) Bugfix: if a proxied or FastCGI request was internally redirected to another proxied or FastCGI location, then $upstream_response_time variable may have abnormally large value; the bug had appeared in 0.7.63. *) Bugfix: if the "expires modified" set date in the past, then a negative number was set in the "Cache-Control" response header line. Thanks to Alex Kapranoff. *) Bugfix: nginx closed a connection if a cached response had an empty body. Thanks to Piotr Sikora. *) Bugfix: nginx cached a 304 response if there was the "If-None-Match" header line in a proxied request. Thanks to Tim Dettrick and David Kostal. *) Bugfix: nginx did not treat a comma as separator in the "Cache-Control" backend response header line. *) Bugfix: cached HTTP/0.9 responses were handled incorrectly. *) Bugfix: nginx sent gzipped responses to clients those do not support gzip, if "gzip_static on" and "gzip_vary off"; the bug had appeared in 0.8.16. *) Bugfix: nginx always added "Content-Encoding: gzip" response header line in 304 responses sent by ngx_http_gzip_static_module. *) Bugfix: the "!-x" operator did not work. Thanks to Maxim Dounin. *) Bugfix: a segmentation fault might occur in a worker process, if limit_rate was used in HTTPS server. Thanks to Maxim Dounin. *) Bugfix: a segmentation fault might occur in a worker process while $limit_rate logging. Thanks to Maxim Dounin. *) Bugfix: nginx did not support dates in 2038 year on 32-bit platforms; *) Bugfix: nginx/Windows tried to delete a temporary file twice if the file should replace an already existent file. *) Bugfix: nginx/Windows tried to rename a temporary file twice if the file should replace an already existent file. *) Bugfix: nginx/Windows might not create temporary file, a cache file, or "proxy/fastcgi_store"d file if a worker had no enough access rights for top level directories. *) Bugfix: in UTF-8 encoding support by "try_files" directive in nginx/Windows. *) Bugfix: UTF-8 encoding usage in the ngx_http_autoindex_module. Thanks to Maxim Dounin. *) Bugfix: the ngx_http_autoindex_module did not show the trailing slash in links to a directory; the bug had appeared in 0.7.15. *) Bugfix: nginx did not close a log file set by the --error-log-path configuration option; the bug had appeared in 0.7.53. *) Bugfix: "addition_types" directive was incorrectly named "addtion_types". *) Bugfix: invalid request line in $request variable was written in access_log only if error_log was set to "info" or "debug" level.
author Igor Sysoev <http://sysoev.ru>
date Mon, 01 Feb 2010 00:00:00 +0000
parents 89dc5654117c
children 68c0ae0a4959
comparison
equal deleted inserted replaced
505:c62da3dcc544 506:b9fdcaf2062b
150 }; 150 };
151 151
152 #endif 152 #endif
153 153
154 154
155 static ngx_str_t ngx_null_name = ngx_null_string; 155 static ngx_str_t ngx_null_name = ngx_null_string;
156 156 static HV *nginx_stash;
157 static HV *nginx_stash;
158 157
159 #if (NGX_HAVE_PERL_MULTIPLICITY) 158 #if (NGX_HAVE_PERL_MULTIPLICITY)
160 static ngx_uint_t ngx_perl_term; 159 static ngx_uint_t ngx_perl_term;
160 #else
161 static PerlInterpreter *perl;
161 #endif 162 #endif
162 163
163 164
164 static void 165 static void
165 ngx_http_perl_xs_init(pTHX) 166 ngx_http_perl_xs_init(pTHX)
454 455
455 456
456 static char * 457 static char *
457 ngx_http_perl_init_interpreter(ngx_conf_t *cf, ngx_http_perl_main_conf_t *pmcf) 458 ngx_http_perl_init_interpreter(ngx_conf_t *cf, ngx_http_perl_main_conf_t *pmcf)
458 { 459 {
459 ngx_str_t *m; 460 ngx_str_t *m;
460 ngx_uint_t i; 461 ngx_uint_t i;
461 #if (NGX_HAVE_PERL_MULTIPLICITY) 462 #if (NGX_HAVE_PERL_MULTIPLICITY)
462 ngx_pool_cleanup_t *cln; 463 ngx_pool_cleanup_t *cln;
463 464
464 cln = ngx_pool_cleanup_add(cf->pool, 0); 465 cln = ngx_pool_cleanup_add(cf->pool, 0);
465 if (cln == NULL) { 466 if (cln == NULL) {
466 return NGX_CONF_ERROR; 467 return NGX_CONF_ERROR;
467 } 468 }
468 469
469 #else
470 static PerlInterpreter *perl;
471 #endif 470 #endif
472 471
473 #ifdef NGX_PERL_MODULES 472 #ifdef NGX_PERL_MODULES
474 if (pmcf->modules == NGX_CONF_UNSET_PTR) { 473 if (pmcf->modules == NGX_CONF_UNSET_PTR) {
475 474
1066 static void 1065 static void
1067 ngx_http_perl_exit(ngx_cycle_t *cycle) 1066 ngx_http_perl_exit(ngx_cycle_t *cycle)
1068 { 1067 {
1069 #if (NGX_HAVE_PERL_MULTIPLICITY) 1068 #if (NGX_HAVE_PERL_MULTIPLICITY)
1070 1069
1070 /*
1071 * the master exit hook is run before global pool cleanup,
1072 * therefore just set flag here
1073 */
1074
1071 ngx_perl_term = 1; 1075 ngx_perl_term = 1;
1072 1076
1073 #else 1077 #else
1074 ngx_http_perl_main_conf_t *pmcf; 1078
1075 1079 if (nginx_stash) {
1076 pmcf = ngx_http_cycle_get_module_main_conf(cycle, ngx_http_perl_module);
1077
1078 if (pmcf && nginx_stash) {
1079 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, cycle->log, 0, "perl term"); 1080 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, cycle->log, 0, "perl term");
1080 1081
1081 (void) perl_destruct(pmcf->perl); 1082 (void) perl_destruct(perl);
1082 1083
1083 perl_free(pmcf->perl); 1084 perl_free(perl);
1084 1085
1085 PERL_SYS_TERM(); 1086 PERL_SYS_TERM();
1086 } 1087 }
1087 1088
1088 #endif 1089 #endif