Software /
code /
prosody
Diff
net/adns.lua @ 5730:411e9e7d8035
net.dns, net.adns: Make sure errors from net.server are propagated (thanks asterix)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 10 Jul 2013 07:45:10 +0200 |
parent | 4103:c994524ef953 |
child | 5776:bd0ff8ae98a8 |
child | 6287:a380b09649e6 |
line wrap: on
line diff
--- a/net/adns.lua Mon Jul 08 23:59:51 2013 +0100 +++ b/net/adns.lua Wed Jul 10 07:45:10 2013 +0200 @@ -68,9 +68,9 @@ resolver:servfail(conn); -- Let the magic commence end end - handler = server.wrapclient(sock, "dns", 53, listener); + handler, err = server.wrapclient(sock, "dns", 53, listener); if not handler then - log("warn", "handler is nil"); + return nil, err; end handler.settimeout = function () end