comparison src/event/ngx_event_pipe.c @ 2797:90422d071d3f

do not free buffer with cache header before it would be written, it seems this affected header only FastCGI responses only: proxied header only responses were cached right
author Igor Sysoev <igor@sysoev.ru>
date Mon, 04 May 2009 19:04:00 +0000
parents 3a8a53c0c42f
children f54b02dbb12b
comparison
equal deleted inserted replaced
2796:c85101146a78 2797:90422d071d3f
395 return NGX_ABORT; 395 return NGX_ABORT;
396 } 396 }
397 397
398 p->free_raw_bufs = p->free_raw_bufs->next; 398 p->free_raw_bufs = p->free_raw_bufs->next;
399 399
400 if (p->free_bufs) { 400 if (p->free_bufs && p->buf_to_file == NULL) {
401 for (cl = p->free_raw_bufs; cl; cl = cl->next) { 401 for (cl = p->free_raw_bufs; cl; cl = cl->next) {
402 if (cl->buf->shadow == NULL) { 402 if (cl->buf->shadow == NULL) {
403 ngx_pfree(p->pool, cl->buf->start); 403 ngx_pfree(p->pool, cl->buf->start);
404 } 404 }
405 } 405 }