Mercurial > hg > nginx-quic
comparison src/core/ngx_buf.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 |
---|---|
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) |