comparison src/core/ngx_log.c @ 276:c5c2b2883984 NGINX_0_5_8

nginx 0.5.8 *) Bugfix: a segmentation fault might occur if "client_body_in_file_only on" was used and a request body was small. *) Bugfix: a segmentation fault occurred if "client_body_in_file_only on" and "proxy_pass_request_body off" or "fastcgi_pass_request_body off" directives were used, and nginx switched to a next upstream. *) Bugfix: if the "proxy_buffering off" directive was used and a client connection was non-active, then the connection was closed after send timeout; bug appeared in 0.4.7. *) Bugfix: if the "epoll" method was used and a client closed a connection prematurely, then nginx closed the connection after a send timeout only. *) Bugfix: the "[alert] zero size buf" error when FastCGI server was used. *) Bugfixes in the "limit_zone" directive.
author Igor Sysoev <http://sysoev.ru>
date Fri, 19 Jan 2007 00:00:00 +0300
parents 6eb1e38f0f1f
children f745bf973510
comparison
equal deleted inserted replaced
275:1779577cb845 276:c5c2b2883984
207 #if (NGX_WIN32) 207 #if (NGX_WIN32)
208 208
209 ngx_stderr_fileno = GetStdHandle(STD_ERROR_HANDLE); 209 ngx_stderr_fileno = GetStdHandle(STD_ERROR_HANDLE);
210 210
211 ngx_stderr.fd = ngx_open_file(NGX_ERROR_LOG_PATH, NGX_FILE_RDWR, 211 ngx_stderr.fd = ngx_open_file(NGX_ERROR_LOG_PATH, NGX_FILE_RDWR,
212 NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND); 212 NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND, 0);
213 213
214 if (ngx_stderr.fd == NGX_INVALID_FILE) { 214 if (ngx_stderr.fd == NGX_INVALID_FILE) {
215 ngx_message_box("nginx", MB_OK, ngx_errno, 215 ngx_message_box("nginx", MB_OK, ngx_errno,
216 "Could not open error log file: " 216 "Could not open error log file: "
217 ngx_open_file_n " \"" NGX_ERROR_LOG_PATH "\" failed"); 217 ngx_open_file_n " \"" NGX_ERROR_LOG_PATH "\" failed");
277 for (n = 1; n <= NGX_LOG_DEBUG; n++) { 277 for (n = 1; n <= NGX_LOG_DEBUG; n++) {
278 if (ngx_strcmp(value[i].data, err_levels[n]) == 0) { 278 if (ngx_strcmp(value[i].data, err_levels[n]) == 0) {
279 279
280 if (log->log_level != 0) { 280 if (log->log_level != 0) {
281 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 281 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
282 "invalid log level \"%s\"", 282 "duplicate log level \"%s\"",
283 value[i].data); 283 value[i].data);
284 return NGX_CONF_ERROR; 284 return NGX_CONF_ERROR;
285 } 285 }
286 286
287 log->log_level = n; 287 log->log_level = n;