16 #define NGX_IOVS IOV_MAX
24 ssize_t n, size, sent;
25 off_t send, prev_send;
43 "kevent() reported about an closed connection");
59 vec.
size =
sizeof(
struct iovec);
74 for (cl = in; cl && send < limit; cl = cl->
next) {
88 if (send + size > limit) {
89 size = (ssize_t) (limit - send);
92 if (prev == cl->
buf->
pos) {
105 iov->iov_base = (
void *) cl->
buf->
pos;
109 prev = cl->
buf->
pos + size;
133 "writev() not ready");
136 sent = n > 0 ? n : 0;
140 if (send - prev_send == sent) {
146 for (cl = in; cl; cl = cl->
next) {
179 if (send >= limit || cl == NULL) {