Software /
code /
prosody
Changeset
980:b52d442161f2
net.adns: Flush buffer after sending DNS request
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 11 Apr 2009 16:13:40 +0100 |
parents | 979:d0fd49c4339c |
children | 981:71fce47dff7b |
files | net/adns.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/adns.lua Fri Apr 10 10:49:58 2009 +0100 +++ b/net/adns.lua Sat Apr 11 16:13:40 2009 +0100 @@ -34,7 +34,7 @@ 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