From f135b2f4a427a21167576e14ac2f08c1179ce275 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 28 Dec 2009 19:49:55 +0500 Subject: net/dns: Fix socket.select timeout. --- net/dns.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/net/dns.lua b/net/dns.lua index 8855cc61..020a0ae8 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -851,7 +851,14 @@ end function resolver:lookup(qname, qtype, qclass) -- - - - - - - - - - lookup self:query (qname, qtype, qclass) - while self:pulse() do socket.select(self.socket, nil, 4); end + while self:pulse() do + local recvt = {} + local i, s + for i, s in ipairs(self.socket) do + recvt[i] = s.socket() + end + socket.select(recvt, nil, 4) + end --print(self.cache); return self:peek(qname, qtype, qclass); end -- cgit v1.2.3 From 5df3474dd218fd4f6a65b196cf206a1a720c51a8 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 18 May 2010 23:28:36 +0100 Subject: configure: Fix to allow option values containing '=' (thanks Jakub) --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index bd8eb48c..e9e2dc7f 100755 --- a/configure +++ b/configure @@ -61,7 +61,7 @@ EOF while [ "$1" ] do - value="`echo $1 | sed 's/.*=\(.*\)/\1/'`" + value="`echo $1 | sed 's/[^=]*=\(.*\)/\1/'`" if echo "$value" | grep -q "~" then echo -- cgit v1.2.3