Comparison

net/server_epoll.lua @ 10416:6af8c812a885

net.server_epoll: Clarify a debug message Writing what? The data that's been buffered for writing
author Kim Alvefur <zash@zash.se>
date Sat, 19 Oct 2019 20:10:14 +0200
parent 10332:e05ea8223b32
child 10417:d8a0b0d21c81
comparison
equal deleted inserted replaced
10415:360d574517b6 10416:6af8c812a885
466 -- Close, possibly after writing is done 466 -- Close, possibly after writing is done
467 function interface:close() 467 function interface:close()
468 if self.writebuffer and self.writebuffer[1] then 468 if self.writebuffer and self.writebuffer[1] then
469 self:set(false, true); -- Flush final buffer contents 469 self:set(false, true); -- Flush final buffer contents
470 self.write, self.send = noop, noop; -- No more writing 470 self.write, self.send = noop, noop; -- No more writing
471 self:debug("Close after writing"); 471 self:debug("Close after writing remaining buffered data");
472 self.ondrain = interface.close; 472 self.ondrain = interface.close;
473 else 473 else
474 self:debug("Closing now"); 474 self:debug("Closing now");
475 self.write, self.send = noop, noop; 475 self.write, self.send = noop, noop;
476 self.close = noop; 476 self.close = noop;