diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-07-05 12:13:55 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-07-05 12:13:55 +0100 |
commit | 90b0ef76c687a4c819f9487a35f5f615d2a2f7db (patch) | |
tree | 91b7864adcc55db8f016ce08f23efaf2649bdfcc | |
parent | d2b5e885a827c7f91c1216c2603b89831bf498d0 (diff) | |
download | prosody-90b0ef76c687a4c819f9487a35f5f615d2a2f7db.tar.gz prosody-90b0ef76c687a4c819f9487a35f5f615d2a2f7db.zip |
net.dns: Add dns.settimeout() to set the timeout for the default resolver
-rw-r--r-- | net/dns.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/dns.lua b/net/dns.lua index dbb4fc49..714d6618 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -993,6 +993,10 @@ function dns.cancel(...) -- - - - - - - - - - - - - - - - - - - - - - cancel 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 |