projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* libs/httpd: Fixed typos
[project/luci.git]
/
libs
/
httpd
/
luasrc
/
httpd.lua
diff --git
a/libs/httpd/luasrc/httpd.lua
b/libs/httpd/luasrc/httpd.lua
index
050e03e
..
f471e6b
100644
(file)
--- 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()
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
if os.difftime(now, thread:touched()) > self.timeout then
self.threads[sock] = nil
self.threadc = self.threadc - 1