aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-11 16:13:40 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-11 16:13:40 +0100
commite7cd3523a4ad79e14897a12b65a192ebcb8e1581 (patch)
treea6f2d5806aabed12babe3bac2eb39d6741b31366 /net
parentb0107266fcb030389ec121cc0be7528fed218ee1 (diff)
downloadprosody-e7cd3523a4ad79e14897a12b65a192ebcb8e1581.tar.gz
prosody-e7cd3523a4ad79e14897a12b65a192ebcb8e1581.zip
net.adns: Flush buffer after sending DNS request
Diffstat (limited to 'net')
-rw-r--r--net/adns.lua2
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