Comparison

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
comparison
equal deleted inserted replaced
10304:56522bb3bca5 10305:2fadbf209678
418 end 418 end
419 self:setwritetimeout(false); 419 self:setwritetimeout(false);
420 self:ondrain(); -- Be aware of writes in ondrain 420 self:ondrain(); -- Be aware of writes in ondrain
421 return; 421 return;
422 elseif partial then 422 elseif partial then
423 self:debug("Sent %d out of %d buffered bytes", partial, #data);
423 buffer[1] = data:sub(partial+1); 424 buffer[1] = data:sub(partial+1);
424 for i = #buffer, 2, -1 do 425 for i = #buffer, 2, -1 do
425 buffer[i] = nil; 426 buffer[i] = nil;
426 end 427 end
427 self:set(nil, true); 428 self:set(nil, true);