Comparison

net/server_epoll.lua @ 10289:8c59b20f71dc

net.server_epoll: Correct indentation
author Kim Alvefur <zash@zash.se>
date Sun, 29 Sep 2019 17:30:54 +0200
parent 10285:bcf61e22f841
child 10300:78f2a3a9c537
comparison
equal deleted inserted replaced
10288:f36f7d2c269b 10289:8c59b20f71dc
793 -- Dump all data from one connection into another 793 -- Dump all data from one connection into another
794 local function link(from, to, read_size) 794 local function link(from, to, read_size)
795 from:debug("Linking to %s", to.id); 795 from:debug("Linking to %s", to.id);
796 function from:onincoming(data) 796 function from:onincoming(data)
797 self:pause(); 797 self:pause();
798 to:write(data); 798 to:write(data);
799 end 799 end
800 function to:ondrain() -- luacheck: ignore 212/self 800 function to:ondrain() -- luacheck: ignore 212/self
801 from:resume(); 801 from:resume();
802 end 802 end
803 from:set_mode(read_size); 803 from:set_mode(read_size);
804 from:set(true, nil); 804 from:set(true, nil);
805 to:set(nil, true); 805 to:set(nil, true);
806 end 806 end