Diff

net/server_epoll.lua @ 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
parent 10300:78f2a3a9c537
child 10307:6a997f0ceba8
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;