comparison src/os/unix/ngx_solaris_sendfilev_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 87e73f067470
children e366ba5db8f8
comparison
equal deleted inserted replaced
342:0ee0642af5f1 343:6bdf858bff8c
38 sent = 0; 38 sent = 0;
39 39
40 ngx_init_array(vec, c->pool, 10, sizeof(sendfilevec_t), 40 ngx_init_array(vec, c->pool, 10, sizeof(sendfilevec_t),
41 NGX_CHAIN_ERROR); 41 NGX_CHAIN_ERROR);
42 42
43 /* create the sendfilevec and coalesce the neighbouring hunks */ 43 /* create the sendfilevec and coalesce the neighbouring bufs */
44 44
45 for (cl = in; cl && vec.nelts < IOV_MAX; cl = cl->next) { 45 for (cl = in; cl && vec.nelts < IOV_MAX; cl = cl->next) {
46 if (ngx_hunk_special(cl->hunk)) { 46 if (ngx_hunk_special(cl->hunk)) {
47 continue; 47 continue;
48 } 48 }
81 fprev = cl->hunk->file_last; 81 fprev = cl->hunk->file_last;
82 } 82 }
83 } 83 }
84 84
85 /* 85 /*
86 * the tail is the rest of the chain that exceeded a single 86 * the tail is the rest of the chain that exceedes a single
87 * sendfilev() capability, IOV_MAX in Solaris is only 16 87 * sendfilev() capability, IOV_MAX in Solaris is limited by 16
88 */ 88 */
89 89
90 tail = cl; 90 tail = cl;
91 91
92 n = sendfilev(c->fd, vec.elts, vec.nelts, &sent); 92 n = sendfilev(c->fd, vec.elts, vec.nelts, &sent);