Comparison

net/adns.lua @ 11267:97077089f3c2

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 12 Jan 2021 19:19:15 +0100
parent 11217:65ce1178d655
parent 11266:2115496e8251
child 12974:ba409c67353b
comparison
equal deleted inserted replaced
11264:2cdcf55c6dd5 11267:97077089f3c2
53 local err; 53 local err;
54 handler, err = server.wrapclient(sock, "dns", 53, listener); 54 handler, err = server.wrapclient(sock, "dns", 53, listener);
55 if not handler then 55 if not handler then
56 return nil, err; 56 return nil, err;
57 end 57 end
58 end
59 if handler.set then
60 -- server_epoll: only watch for incoming data
61 -- avoids sending empty packet on first 'onwritable' event
62 handler:set(true, false);
58 end 63 end
59 64
60 handler.settimeout = function () end 65 handler.settimeout = function () end
61 handler.setsockname = function (_, ...) return sock:setsockname(...); end 66 handler.setsockname = function (_, ...) return sock:setsockname(...); end
62 handler.setpeername = function (_, ...) peername = (...); local ret, err = sock:setpeername(...); _:set_send(dummy_send); return ret, err; end 67 handler.setpeername = function (_, ...) peername = (...); local ret, err = sock:setpeername(...); _:set_send(dummy_send); return ret, err; end