comparison src/http/modules/ngx_http_status_handler.c @ 461:a88a3e4e158f release-0.1.5

nginx-0.1.5-RELEASE import *) Bugfix: on Solaris and Linux there may be too many "recvmsg() returned not enough data" alerts. *) Bugfix: there were the "writev() failed (22: Invalid argument)" errors on Solaris in proxy mode without sendfile. On other platforms that do not support sendfile at all the process got caught in an endless loop. *) Bugfix: segmentation fault on Solaris in proxy mode and using sendfile. *) Bugfix: segmentation fault on Solaris. *) Bugfix: on-line upgrade did not work on Linux. *) Bugfix: the ngx_http_autoindex_module module did not escape the spaces, the quotes, and the percent signs in the directory listing. *) Change: the decrease of the copy operations. *) Feature: the userid_p3p directive.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 11 Nov 2004 14:07:14 +0000
parents 295d97d70c69
children
comparison
equal deleted inserted replaced
460:5f8319142dfc 461:a88a3e4e158f
169 if (!(b = ngx_create_temp_buf(ctx->pool, len))) { 169 if (!(b = ngx_create_temp_buf(ctx->pool, len))) {
170 /* TODO: unlock mutex */ 170 /* TODO: unlock mutex */
171 return NGX_ERROR; 171 return NGX_ERROR;
172 } 172 }
173 173
174 b->last += ngx_snprintf((char *) b->last, 174 b->last = ngx_sprintf(b->last, "%P %5ui", ngx_pid, i);
175 /* STUB: should be NGX_PID_T_LEN */
176 NGX_INT64_LEN + NGX_INT32_LEN,
177 PID_T_FMT " %4u", ngx_pid, i);
178 175
179 switch (r->http_state) { 176 switch (r->http_state) {
180 case NGX_HTTP_INITING_REQUEST_STATE: 177 case NGX_HTTP_INITING_REQUEST_STATE:
181 ch = 'I'; 178 ch = 'I';
182 break; 179 break;
248 if (!(b = ngx_create_temp_buf(ctx->pool, len))) { 245 if (!(b = ngx_create_temp_buf(ctx->pool, len))) {
249 /* TODO: unlock mutex */ 246 /* TODO: unlock mutex */
250 return NGX_ERROR; 247 return NGX_ERROR;
251 } 248 }
252 249
253 b->last += ngx_snprintf((char *) b->last, 250 b->last = ngx_sprintf(b->last, "%P %5ui", ngx_pid, i);
254 /* STUB: should be NGX_PID_T_LEN */
255 NGX_INT64_LEN + NGX_INT32_LEN,
256 PID_T_FMT " %4u", ngx_pid, i);
257 251
258 *(b->last++) = ' '; 252 *(b->last++) = ' ';
259 *(b->last++) = 's'; 253 *(b->last++) = 's';
260 254
261 *(b->last++) = CR; *(b->last++) = LF; 255 *(b->last++) = CR; *(b->last++) = LF;