comparison 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
comparison
equal deleted inserted replaced
149:86404ba5c517 150:ad5f382c9e7d
14 #if (NGX_SUPPRESS_WARN) 14 #if (NGX_SUPPRESS_WARN)
15 iov = NULL; 15 iov = NULL;
16 #endif 16 #endif
17 17
18 ngx_init_array(io, c->pool, 10, sizeof(struct iovec), NGX_ERROR); 18 ngx_init_array(io, c->pool, 10, sizeof(struct iovec), NGX_ERROR);
19
20 /* TODO: coalesce the neighbouring chain entries */
19 21
20 while (entry) { 22 while (entry) {
21 ngx_test_null(iov, ngx_push_array(&io), NGX_ERROR); 23 ngx_test_null(iov, ngx_push_array(&io), NGX_ERROR);
22 iov->iov_base = entry->hunk->pos; 24 iov->iov_base = entry->hunk->pos;
23 iov->iov_len = entry->hunk->end - entry->hunk->last; 25 iov->iov_len = entry->hunk->end - entry->hunk->last;