From 8b71d1123cee70df8e25558a0e1636c5748fb3b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Thu, 30 Nov 2017 07:32:43 +0100 Subject: [PATCH] fixup! afb-ws & websocket: Fix writing very long data MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: José Bollo --- src/afb-ws.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.16.6