* libs/httpd: Fixed typos
This commit is contained in:
parent
e0e4983130
commit
7d0b17c7d3
2 changed files with 3 additions and 1 deletions
|
@ -98,7 +98,7 @@ end
|
||||||
function Daemon.kill_timedout(self)
|
function Daemon.kill_timedout(self)
|
||||||
local now = os.time()
|
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
|
if os.difftime(now, thread:touched()) > self.timeout then
|
||||||
self.threads[sock] = nil
|
self.threads[sock] = nil
|
||||||
self.threadc = self.threadc - 1
|
self.threadc = self.threadc - 1
|
||||||
|
|
|
@ -109,7 +109,9 @@ function Server.process( self, thread )
|
||||||
|
|
||||||
-- Setup sockets and sources
|
-- Setup sockets and sources
|
||||||
local client = thread.socket
|
local client = thread.socket
|
||||||
|
|
||||||
client:settimeout( 0 )
|
client:settimeout( 0 )
|
||||||
|
|
||||||
local sourcein = ltn12.source.empty()
|
local sourcein = ltn12.source.empty()
|
||||||
local sourcehdr = luci.http.protocol.header_source( thread )
|
local sourcehdr = luci.http.protocol.header_source( thread )
|
||||||
local sinkerr = ltn12.sink.file( io.stderr )
|
local sinkerr = ltn12.sink.file( io.stderr )
|
||||||
|
|
Loading…
Reference in a new issue