summaryrefslogtreecommitdiffhomepage
path: root/libs/httpd
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-25 18:33:38 +0000
committerSteven Barth <steven@midlink.org>2008-06-25 18:33:38 +0000
commit7d0b17c7d3b344a1cdb1e12e281057036e433a2e (patch)
tree7c94d728824c4d7033fcd2e15dc970c9ee51c734 /libs/httpd
parente0e498313064c9664d5f86d336d87233ec2792a5 (diff)
* libs/httpd: Fixed typos
Diffstat (limited to 'libs/httpd')
-rw-r--r--libs/httpd/luasrc/httpd.lua2
-rw-r--r--libs/httpd/luasrc/httpd/server.lua2
2 files changed, 3 insertions, 1 deletions
diff --git a/libs/httpd/luasrc/httpd.lua b/libs/httpd/luasrc/httpd.lua
index 050e03ec2..f471e6b0c 100644
--- a/libs/httpd/luasrc/httpd.lua
+++ b/libs/httpd/luasrc/httpd.lua
@@ -98,7 +98,7 @@ end
function Daemon.kill_timedout(self)
local now = os.time()
- for k, v in pairs(self.threads) do
+ for sock, thread in pairs(self.threads) do
if os.difftime(now, thread:touched()) > self.timeout then
self.threads[sock] = nil
self.threadc = self.threadc - 1
diff --git a/libs/httpd/luasrc/httpd/server.lua b/libs/httpd/luasrc/httpd/server.lua
index 57221647f..431a946c0 100644
--- a/libs/httpd/luasrc/httpd/server.lua
+++ b/libs/httpd/luasrc/httpd/server.lua
@@ -109,7 +109,9 @@ function Server.process( self, thread )
-- Setup sockets and sources
local client = thread.socket
+
client:settimeout( 0 )
+
local sourcein = ltn12.source.empty()
local sourcehdr = luci.http.protocol.header_source( thread )
local sinkerr = ltn12.sink.file( io.stderr )