aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-01-12 19:19:15 +0100
committerKim Alvefur <zash@zash.se>2021-01-12 19:19:15 +0100
commitf4208459a70ad45794af44c54a7de2e2785ef9e9 (patch)
tree997cb2d8bce39f14c53cffc37d43c8a3715f81c5 /net
parent2f4d12286f17da4e0a1d6916e9c6addd5f61f9f5 (diff)
parentf36531b53a33601d2ccf9b3481f20c26efc0198b (diff)
downloadprosody-f4208459a70ad45794af44c54a7de2e2785ef9e9.tar.gz
prosody-f4208459a70ad45794af44c54a7de2e2785ef9e9.zip
Merge 0.11->trunk
Diffstat (limited to 'net')
-rw-r--r--net/adns.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/adns.lua b/net/adns.lua
index 48b724c0..ae168b9c 100644
--- a/net/adns.lua
+++ b/net/adns.lua
@@ -56,6 +56,11 @@ local function new_async_socket(sock, resolver)
return nil, err;
end
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