Software /
code /
prosody
Comparison
net/dns.lua @ 3056:c585678b3ecb
net.dns: Fix dns.lookup from commit e54774bd73a7
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 20 May 2010 10:45:29 +0100 |
parent | 3049:e54774bd73a7 |
child | 3057:ca1fe9f74bd0 |
comparison
equal
deleted
inserted
replaced
3055:6405d899764e | 3056:c585678b3ecb |
---|---|
853 self:query (qname, qtype, qclass) | 853 self:query (qname, qtype, qclass) |
854 while self:pulse() do | 854 while self:pulse() do |
855 local recvt = {} | 855 local recvt = {} |
856 local i, s | 856 local i, s |
857 for i, s in ipairs(self.socket) do | 857 for i, s in ipairs(self.socket) do |
858 recvt[i] = s.socket() | 858 recvt[i] = s |
859 end | 859 end |
860 socket.select(recvt, nil, 4) | 860 socket.select(recvt, nil, 4) |
861 end | 861 end |
862 --print(self.cache); | 862 --print(self.cache); |
863 return self:peek(qname, qtype, qclass); | 863 return self:peek(qname, qtype, qclass); |