comparison src/core/ngx_output_chain.c @ 56:3050baa54a26 NGINX_0_1_28

nginx 0.1.28 *) Bugfix: nginx hogs CPU while proxying the huge files. *) Bugfix: nginx could not be built by gcc 4.0 on Linux.
author Igor Sysoev <http://sysoev.ru>
date Fri, 08 Apr 2005 00:00:00 +0400
parents 72eb30262aac
children b55cbf18157e
comparison
equal deleted inserted replaced
55:729de7d75018 56:3050baa54a26
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