Changeset

10305:2fadbf209678

net.server_epoll: Log size of partial writes (debug)
author Kim Alvefur <zash@zash.se>
date Sat, 05 Oct 2019 18:10:12 +0200
parents 10304:56522bb3bca5
children 10306:c0a94419c28e
files net/server_epoll.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;