aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua8
-rw-r--r--net/httpserver_listener.lua2
2 files changed, 8 insertions, 2 deletions
diff --git a/net/dns.lua b/net/dns.lua
index 8855cc61..c0de97fd 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -851,7 +851,13 @@ 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 = {}
+ for i, s in ipairs(self.socket) do
+ recvt[i] = s
+ end
+ socket.select(recvt, nil, 4)
+ end
--print(self.cache);
return self:peek(qname, qtype, qclass);
end
diff --git a/net/httpserver_listener.lua b/net/httpserver_listener.lua
index 84016033..dd14b43c 100644
--- a/net/httpserver_listener.lua
+++ b/net/httpserver_listener.lua
@@ -29,7 +29,7 @@ function httpserver.onincoming(conn, data)
end
end
- if data then
+ if data and data ~= "" then
request_reader(request, data);
end
end