Changeset

3328:5ac4fbbfb74d

net.dns: Add dns.settimeout() to set the timeout for the default resolver
author Matthew Wild <mwild1@gmail.com>
date Mon, 05 Jul 2010 12:13:55 +0100
parents 3327:b447682f2a8d
children 3329:9adafeeadecb
files net/dns.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/dns.lua	Mon Jul 05 12:09:50 2010 +0100
+++ b/net/dns.lua	Mon Jul 05 12:13:55 2010 +0100
@@ -993,6 +993,10 @@
 	return _resolver:cancel(...);
 end
 
+function dns.settimeout(...)
+	return _resolver:settimeout(...);
+end
+
 function dns.socket_wrapper_set(...)    -- - - - - - - - -  socket_wrapper_set
 	return _resolver:socket_wrapper_set(...);
 end