diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-08-18 15:59:11 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-08-18 15:59:11 +0100 |
commit | b1b269edddf23648835a433996c3e128cdfe6735 (patch) | |
tree | e59627e285556e133a5776b7dea6d3e430907854 /net | |
parent | a440c6f67a906c0d1476d6f557d928b6f124296f (diff) | |
download | prosody-b1b269edddf23648835a433996c3e128cdfe6735.tar.gz prosody-b1b269edddf23648835a433996c3e128cdfe6735.zip |
net.adns: Add some debug logging to help track down traceback
Diffstat (limited to 'net')
-rw-r--r-- | net/adns.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/adns.lua b/net/adns.lua index 34ef5d77..7ee54da3 100644 --- a/net/adns.lua +++ b/net/adns.lua @@ -50,6 +50,12 @@ function new_async_socket(sock) function listener.disconnect() end newconn.handler, newconn._socket = server.wrapclient(sock, "dns", 53, listener); + if not newconn.handler then + log("warn", "handler is nil"); + end + if not newconn._socket then + log("warn", "socket is nil"); + end newconn.handler.settimeout = function () end newconn.handler.setsockname = function (_, ...) return sock:setsockname(...); end newconn.handler.setpeername = function (_, ...) local ret = sock:setpeername(...); _.setsend(sock.send); return ret; end |