Mercurial > hg > nginx
comparison src/os/unix/ngx_aio_read_chain.c @ 257:70e1c7d2b83d
nginx-0.0.2-2004-02-11-20:08:49 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 11 Feb 2004 17:08:49 +0000 |
parents | 389d7ee9fa60 |
children | 4a3f18406832 |
comparison
equal
deleted
inserted
replaced
256:8e39cab6abd5 | 257:70e1c7d2b83d |
---|---|
39 cl = cl->next; | 39 cl = cl->next; |
40 } | 40 } |
41 | 41 |
42 n = ngx_aio_read(c, buf, size); | 42 n = ngx_aio_read(c, buf, size); |
43 | 43 |
44 ngx_log_debug(c->log, "aio_read: %d" _ n); | 44 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "aio_read: %d", n); |
45 | 45 |
46 if (n == NGX_AGAIN) { | 46 if (n == NGX_AGAIN) { |
47 return total ? total : NGX_AGAIN; | 47 return total ? total : NGX_AGAIN; |
48 } | 48 } |
49 | 49 |
62 | 62 |
63 if (n > 0) { | 63 if (n > 0) { |
64 total += n; | 64 total += n; |
65 } | 65 } |
66 | 66 |
67 ngx_log_debug(c->log, "aio_read total: %d" _ total); | 67 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, |
68 "aio_read total: %d", total); | |
68 } | 69 } |
69 | 70 |
70 return total ? total : NGX_AGAIN; | 71 return total ? total : NGX_AGAIN; |
71 } | 72 } |