Diff

net/adns.lua @ 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
parent 973:b091a1a7273b
child 1005:0eed5db7758d
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