comparison src/os/unix/ngx_readv_chain.c @ 151:2d9e4a8b6d11

nginx-0.0.1-2003-10-20-21:14:07 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 20 Oct 2003 17:14:07 +0000
parents ad5f382c9e7d
children 46eb23d9471d
comparison
equal deleted inserted replaced
150:ad5f382c9e7d 151:2d9e4a8b6d11
19 19
20 /* TODO: coalesce the neighbouring chain entries */ 20 /* TODO: coalesce the neighbouring chain entries */
21 21
22 while (entry) { 22 while (entry) {
23 ngx_test_null(iov, ngx_push_array(&io), NGX_ERROR); 23 ngx_test_null(iov, ngx_push_array(&io), NGX_ERROR);
24 iov->iov_base = entry->hunk->pos; 24 iov->iov_base = entry->hunk->last;
25 iov->iov_len = entry->hunk->end - entry->hunk->last; 25 iov->iov_len = entry->hunk->end - entry->hunk->last;
26 entry = entry->next; 26 entry = entry->next;
27 } 27 }
28 28
29 ngx_log_debug(c->log, "recv: %d:%d" _ io.nelts _ iov->iov_len); 29 ngx_log_debug(c->log, "recv: %d:%d" _ io.nelts _ iov->iov_len);