summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-11-30 07:32:43 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-11-30 07:32:43 +0100
commit8b71d1123cee70df8e25558a0e1636c5748fb3b3 (patch)
tree991cdabc8d193e5001607bfd509ae4389fd6b078
parent214006b8633c6676a9f5ed2ab5c16e98829807d1 (diff)
fixup! afb-ws & websocket: Fix writing very long data
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-ws.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afb-ws.c b/src/afb-ws.c
index 94fd30ea..c48a5e24 100644
--- a/src/afb-ws.c
+++ b/src/afb-ws.c
@@ -394,6 +394,7 @@ static ssize_t aws_writev(struct afb_ws *ws, const struct iovec *iov, int iovcnt
iov2[i] = iov[i];
}
iov2->iov_base += rc;
+ iov2->iov_len -= rc;
}
pfd.fd = ws->fd;
pfd.events = POLLOUT;