comparison src/core/ngx_output_chain.c @ 507:cd3117ad9aab release-0.1.28

nginx-0.1.28-RELEASE import *) Bugfix: nginx hogs CPU while proxying the huge files. *) Bugfix: nginx could not be built by gcc 4.0 on Linux.
author Igor Sysoev <igor@sysoev.ru>
date Fri, 08 Apr 2005 15:18:55 +0000
parents d4ea69372b94
children 9b8c906f6e63
comparison
equal deleted inserted replaced
506:005e65646622 507:cd3117ad9aab
117 if (ctx->buf == NULL) { 117 if (ctx->buf == NULL) {
118 118
119 /* get the free buf */ 119 /* get the free buf */
120 120
121 if (ctx->free) { 121 if (ctx->free) {
122 ctx->buf = ctx->free->buf; 122 cl = ctx->free;
123 ctx->free = ctx->free->next; 123 ctx->buf = cl->buf;
124 ctx->free = cl->next;
125 ngx_free_chain(ctx->pool, cl);
124 126
125 } else if (out || ctx->allocated == ctx->bufs.num) { 127 } else if (out || ctx->allocated == ctx->bufs.num) {
126 128
127 break; 129 break;
128 130