Mercurial > hg > nginx
comparison src/os/unix/ngx_freebsd_sendfile_chain.c @ 262:8c5bdde0d9f0
nginx-0.0.2-2004-02-18-18:45:21 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 18 Feb 2004 15:45:21 +0000 |
parents | b6793bc5034b |
children | cd009bf7400d |
comparison
equal
deleted
inserted
replaced
261:bdd631bf1a1c | 262:8c5bdde0d9f0 |
---|---|
71 /* create the header iovec and coalesce the neighbouring hunks */ | 71 /* create the header iovec and coalesce the neighbouring hunks */ |
72 | 72 |
73 prev = NULL; | 73 prev = NULL; |
74 iov = NULL; | 74 iov = NULL; |
75 | 75 |
76 for (cl = in; cl; cl = cl->next) { | 76 for (cl = in; cl && header.nelts < IOV_MAX; cl = cl->next) { |
77 if (ngx_hunk_special(cl->hunk)) { | 77 if (ngx_hunk_special(cl->hunk)) { |
78 continue; | 78 continue; |
79 } | 79 } |
80 | 80 |
81 if (!ngx_hunk_in_memory_only(cl->hunk)) { | 81 if (!ngx_hunk_in_memory_only(cl->hunk)) { |
121 /* create the tailer iovec and coalesce the neighbouring hunks */ | 121 /* create the tailer iovec and coalesce the neighbouring hunks */ |
122 | 122 |
123 prev = NULL; | 123 prev = NULL; |
124 iov = NULL; | 124 iov = NULL; |
125 | 125 |
126 for ( /* void */; cl; cl = cl->next) { | 126 for ( /* void */; cl && trailer.nelts < IOV_MAX; cl = cl->next) { |
127 if (ngx_hunk_special(cl->hunk)) { | 127 if (ngx_hunk_special(cl->hunk)) { |
128 continue; | 128 continue; |
129 } | 129 } |
130 | 130 |
131 if (!ngx_hunk_in_memory_only(cl->hunk)) { | 131 if (!ngx_hunk_in_memory_only(cl->hunk)) { |