branch | 0.11 |
changeset 11270 | 2115496e8251 |
parent 8558 | 4f0f5b49bb03 |
child 11271 | 97077089f3c2 |
--- a/net/adns.lua Sun Jan 10 14:54:03 2021 +0100 +++ b/net/adns.lua Tue Jan 12 13:25:08 2021 +0100 @@ -50,6 +50,11 @@ if not handler then return nil, err; end + if handler.set then + -- server_epoll: only watch for incoming data + -- avoids sending empty packet on first 'onwritable' event + handler:set(true, false); + end handler.settimeout = function () end handler.setsockname = function (_, ...) return sock:setsockname(...); end