X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fhttpd%2Fluasrc%2Fhttpd.lua;h=f471e6b0cc63bf6501d93b0d98f657eaa7fbce1d;hp=050e03ec2b10b682cc2046bfe6ae10d065bf1cbf;hb=7d0b17c7d3b344a1cdb1e12e281057036e433a2e;hpb=e0e498313064c9664d5f86d336d87233ec2792a5 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