* libs/httpd: Fixed typos
authorSteven Barth <steven@midlink.org>
Wed, 25 Jun 2008 18:33:38 +0000 (18:33 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 25 Jun 2008 18:33:38 +0000 (18:33 +0000)
libs/httpd/luasrc/httpd.lua
libs/httpd/luasrc/httpd/server.lua

index 050e03ec2b10b682cc2046bfe6ae10d065bf1cbf..f471e6b0cc63bf6501d93b0d98f657eaa7fbce1d 100644 (file)
@@ -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
index 57221647fceba2893a98e255a601a00f4c0f81d3..431a946c03c0591354964a190f0b611176f86438 100644 (file)
@@ -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 )