Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_aio_read_chain.c @ 343:6bdf858bff8c
nginx-0.0.3-2004-05-28-19:49:23 import; rename ngx_hunk_t to ngx_buf_t
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 28 May 2004 15:49:23 +0000 |
parents | 7a8ebba985a9 |
children | 744ccb59062d |
comparison
equal
deleted
inserted
replaced
342:0ee0642af5f1 | 343:6bdf858bff8c |
---|---|
26 | 26 |
27 if (!c->read->ready) { | 27 if (!c->read->ready) { |
28 return total ? total : NGX_AGAIN; | 28 return total ? total : NGX_AGAIN; |
29 } | 29 } |
30 | 30 |
31 buf = cl->hunk->last; | 31 buf = cl->buf->last; |
32 prev = cl->hunk->last; | 32 prev = cl->buf->last; |
33 size = 0; | 33 size = 0; |
34 | 34 |
35 /* coalesce the neighbouring hunks */ | 35 /* coalesce the neighbouring bufs */ |
36 | 36 |
37 while (cl && prev == cl->hunk->last) { | 37 while (cl && prev == cl->buf->last) { |
38 size += cl->hunk->end - cl->hunk->last; | 38 size += cl->buf->end - cl->buf->last; |
39 prev = cl->hunk->end; | 39 prev = cl->buf->end; |
40 cl = cl->next; | 40 cl = cl->next; |
41 } | 41 } |
42 | 42 |
43 n = ngx_aio_read(c, buf, size); | 43 n = ngx_aio_read(c, buf, size); |
44 | 44 |