Comparison

net/server_epoll.lua @ 11014:05fefde93036

net.server_epoll: Log debug message when a connection errors on read It's confusingly quiet otherwise, even with maximum verboseness. Thanks perflyst
author Kim Alvefur <zash@zash.se>
date Sat, 25 Jul 2020 17:26:11 +0200
parent 10992:df3ee12acd8c
child 11068:988ddd57e851
comparison
equal deleted inserted replaced
11013:bb010c3c8c93 11014:05fefde93036
403 if partial and partial ~= "" then 403 if partial and partial ~= "" then
404 self:onconnect(); 404 self:onconnect();
405 self:onincoming(partial, err); 405 self:onincoming(partial, err);
406 end 406 end
407 if err ~= "timeout" then 407 if err ~= "timeout" then
408 if err == "closed" then
409 self:debug("Connection closed by remote");
410 else
411 self:debug("Read error, closing (%s)", err);
412 end
408 self:on("disconnect", err); 413 self:on("disconnect", err);
409 self:destroy() 414 self:destroy()
410 return; 415 return;
411 end 416 end
412 end 417 end