Comparison

net/server_epoll.lua @ 9438:916bee81eb7e

net.server_epoll: Make :set_send a noop, should fix net.adns This is also a noop in server_event. Supposedly meant to prevent buffered writes from being sent to the socket, but that path becomes unreachable when net.adns replaces the public send method
author Kim Alvefur <zash@zash.se>
date Sat, 06 Oct 2018 17:50:41 +0200
parent 9432:2e3f66475cc8
child 9439:988392a56495
comparison
equal deleted inserted replaced
9437:b202aa1e2d7b 9438:916bee81eb7e
669 }, {__index=to.listeners}); 669 }, {__index=to.listeners});
670 from:set(true, nil); 670 from:set(true, nil);
671 to:set(nil, true); 671 to:set(nil, true);
672 end 672 end
673 673
674 -- XXX What uses this? 674 -- COMPAT
675 -- net.adns 675 -- net.adns calls this but then replaces :send so this can be a noop
676 function interface:set_send(new_send) 676 function interface:set_send(new_send) -- luacheck: ignore/212
677 self.send = new_send;
678 end 677 end
679 678
680 -- Close all connections and servers 679 -- Close all connections and servers
681 local function closeall() 680 local function closeall()
682 for fd, conn in pairs(fds) do -- luacheck: ignore 213/fd 681 for fd, conn in pairs(fds) do -- luacheck: ignore 213/fd