Mercurial > hg > nginx
diff src/os/unix/ngx_readv_chain.c @ 150:ad5f382c9e7d
nginx-0.0.1-2003-10-19-23:57:23 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 19 Oct 2003 19:57:23 +0000 |
parents | 6dfda4cf5200 |
children | 2d9e4a8b6d11 |
line wrap: on
line diff
--- a/src/os/unix/ngx_readv_chain.c +++ b/src/os/unix/ngx_readv_chain.c @@ -17,6 +17,8 @@ ssize_t ngx_readv_chain(ngx_connection_t ngx_init_array(io, c->pool, 10, sizeof(struct iovec), NGX_ERROR); + /* TODO: coalesce the neighbouring chain entries */ + while (entry) { ngx_test_null(iov, ngx_push_array(&io), NGX_ERROR); iov->iov_base = entry->hunk->pos;