diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-04-11 16:13:40 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-04-11 16:13:40 +0100 |
commit | e7cd3523a4ad79e14897a12b65a192ebcb8e1581 (patch) | |
tree | a6f2d5806aabed12babe3bac2eb39d6741b31366 /net | |
parent | b0107266fcb030389ec121cc0be7528fed218ee1 (diff) | |
download | prosody-e7cd3523a4ad79e14897a12b65a192ebcb8e1581.tar.gz prosody-e7cd3523a4ad79e14897a12b65a192ebcb8e1581.zip |
net.adns: Flush buffer after sending DNS request
Diffstat (limited to 'net')
-rw-r--r-- | net/adns.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/adns.lua b/net/adns.lua index fb68ea71..4c0e5c38 100644 --- a/net/adns.lua +++ b/net/adns.lua @@ -34,7 +34,7 @@ function new_async_socket(sock) newconn.handler.setsockname = function (_, ...) return sock:setsockname(...); end newconn.handler.setpeername = function (_, ...) local ret = sock:setpeername(...); _.setsend(sock.send); return ret; end newconn.handler.connect = function (_, ...) return sock:connect(...) end - newconn.handler.send = function (_, data) return _.write(data) end + newconn.handler.send = function (_, data) _.write(data); return _.sendbuffer(); end return newconn.handler; end |