# HG changeset patch # User Kim Alvefur # Date 1570291812 -7200 # Node ID 2fadbf2096788ad9242793dbc70927499f337a9a # Parent 56522bb3bca59ee33d423d2bb081e5646025b770 net.server_epoll: Log size of partial writes (debug) diff -r 56522bb3bca5 -r 2fadbf209678 net/server_epoll.lua --- a/net/server_epoll.lua Sat Oct 05 17:09:24 2019 +0200 +++ b/net/server_epoll.lua Sat Oct 05 18:10:12 2019 +0200 @@ -420,6 +420,7 @@ self:ondrain(); -- Be aware of writes in ondrain return; elseif partial then + self:debug("Sent %d out of %d buffered bytes", partial, #data); buffer[1] = data:sub(partial+1); for i = #buffer, 2, -1 do buffer[i] = nil;