comparison src/core/ngx_log.c @ 32:da8c190bdaba NGINX_0_1_16

nginx 0.1.16 *) Bugfix: if the response were transferred by chunks, then on the HEAD request the final chunk was issued. *) Bugfix: the "Connection: keep-alive" header were issued, even if the keepalive_timeout directive forbade the keep-alive use. *) Bugfix: the errors in the ngx_http_fastcgi_module caused the segmentation faults. *) Bugfix: the compressed response encrypted by SSL may not transferred complete. *) Bugfix: the TCP-specific TCP_NODELAY, TCP_NOPSUH, and TCP_CORK options, are not used for the unix domain sockets. *) Feature: the rewrite directive supports the arguments rewriting. *) Bugfix: the response code 400 was returned for the POST request with the "Content-Length: 0" header; bug appeared in 0.1.14.
author Igor Sysoev <http://sysoev.ru>
date Tue, 25 Jan 2005 00:00:00 +0300
parents 74b1868dd3cd
children 41ccba1aba45
comparison
equal deleted inserted replaced
31:1b17dd824438 32:da8c190bdaba
84 p = ngx_sprintf(p, " [%s] ", err_levels[level]); 84 p = ngx_sprintf(p, " [%s] ", err_levels[level]);
85 85
86 /* pid#tid */ 86 /* pid#tid */
87 p = ngx_sprintf(p, "%P#" NGX_TID_T_FMT ": ", ngx_log_pid, ngx_log_tid); 87 p = ngx_sprintf(p, "%P#" NGX_TID_T_FMT ": ", ngx_log_pid, ngx_log_tid);
88 88
89 if (log->connection) {
90 p = ngx_sprintf(p, "*%ui ", log->connection);
91 }
92
93 #if 0
89 if (log->data && *(int *) log->data != -1) { 94 if (log->data && *(int *) log->data != -1) {
90 p = ngx_sprintf(p, "*%ud ", *(u_int *) log->data); 95 p = ngx_sprintf(p, "*%ud ", *(u_int *) log->data);
91 } 96 }
97 #endif
92 98
93 #if (NGX_HAVE_VARIADIC_MACROS) 99 #if (NGX_HAVE_VARIADIC_MACROS)
94 100
95 va_start(args, fmt); 101 va_start(args, fmt);
96 p = ngx_vsnprintf(p, last - p, fmt, args); 102 p = ngx_vsnprintf(p, last - p, fmt, args);
135 *p++ = ')'; 141 *p++ = ')';
136 } 142 }
137 } 143 }
138 144
139 if (level != NGX_LOG_DEBUG && log->handler) { 145 if (level != NGX_LOG_DEBUG && log->handler) {
140 p = log->handler(log->data, p, last - p); 146 p = log->handler(log, p, last - p);
141 } 147 }
142 148
143 ngx_log_write(log, errstr, p - errstr); 149 ngx_log_write(log, errstr, p - errstr);
144 } 150 }
145 151