summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_sendbuf.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-02-22 15:10:28 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-02-22 15:10:28 +0300
commitb379dae85e6edcb4af1ac665ab66d99e63bf34f4 (patch)
tree84b1d69d355e4722ebee02748e512306913a92d7 /src/nxt_sendbuf.c
parent029942f4eb7196c2cff0d0e26bc6ff274138f7d8 (diff)
downloadunit-b379dae85e6edcb4af1ac665ab66d99e63bf34f4.tar.gz
unit-b379dae85e6edcb4af1ac665ab66d99e63bf34f4.tar.bz2
Port changes.
Diffstat (limited to 'src/nxt_sendbuf.c')
-rw-r--r--src/nxt_sendbuf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nxt_sendbuf.c b/src/nxt_sendbuf.c
index 21a25e68..62042504 100644
--- a/src/nxt_sendbuf.c
+++ b/src/nxt_sendbuf.c
@@ -122,15 +122,15 @@ nxt_sendbuf_mem_coalesce(nxt_task_t *task, nxt_sendbuf_coalesce_t *sb)
goto done;
}
- nxt_iobuf_set(&sb->iobuf[n], b->mem.pos, size);
+ sb->iobuf[n].iov_base = b->mem.pos;
+ sb->iobuf[n].iov_len = size;
} else {
- nxt_iobuf_add(&sb->iobuf[n], size);
+ sb->iobuf[n].iov_len += size;
}
- nxt_debug(task, "sendbuf: %ui, %p, %uz", n,
- nxt_iobuf_data(&sb->iobuf[n]),
- nxt_iobuf_size(&sb->iobuf[n]));
+ nxt_debug(task, "sendbuf: %ui, %p, %uz",
+ n, sb->iobuf[n].iov_base, sb->iobuf[n].iov_len);
total += size;
last = b->mem.pos + size;