comparison src/core/ngx_buf.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
38 b->last = b->start; 38 b->last = b->start;
39 b->end = b->last + size; 39 b->end = b->last + size;
40 b->temporary = 1; 40 b->temporary = 1;
41 41
42 return b; 42 return b;
43 }
44
45
46 ngx_chain_t *
47 ngx_alloc_chain_link(ngx_pool_t *pool)
48 {
49 ngx_chain_t *cl;
50
51 cl = pool->chain;
52
53 if (cl) {
54 pool->chain = cl->next;
55 return cl;
56 }
57
58 cl = ngx_palloc(pool, sizeof(ngx_chain_t));
59 if (cl == NULL) {
60 return NULL;
61 }
62
63 return cl;
43 } 64 }
44 65
45 66
46 ngx_chain_t * 67 ngx_chain_t *
47 ngx_create_chain_of_bufs(ngx_pool_t *pool, ngx_bufs_t *bufs) 68 ngx_create_chain_of_bufs(ngx_pool_t *pool, ngx_bufs_t *bufs)