From: Guus Sliepen Date: Mon, 18 May 2020 21:23:32 +0000 (+0200) Subject: Report the amount of actual data sent/received in AIO callbacks. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=13d81341aca563b0e53b0de9475ad2b02c7b5a3c;p=meshlink Report the amount of actual data sent/received in AIO callbacks. We did this for fds but not for memory buffers. --- diff --git a/src/meshlink.c b/src/meshlink.c index 55b1e04f..5815a777 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -3465,7 +3465,7 @@ static bool aio_finish_one(meshlink_handle_t *mesh, meshlink_channel_t *channel, if(aio->data) { if(aio->cb.buffer) { - aio->cb.buffer(mesh, channel, aio->data, aio->len, aio->priv); + aio->cb.buffer(mesh, channel, aio->data, aio->done, aio->priv); } } else { if(aio->cb.fd) {