* libs/httpd: Tuned Garbage Collection
This commit is contained in:
parent
1e413b9251
commit
df8f524940
2 changed files with 4 additions and 4 deletions
|
@ -7,6 +7,7 @@ require("luci.httpd.handler.luci")
|
||||||
DOCROOT = arg[1]
|
DOCROOT = arg[1]
|
||||||
PORT = 8080
|
PORT = 8080
|
||||||
|
|
||||||
|
collectgarbage("setpause", 150)
|
||||||
|
|
||||||
serversocket = luci.httpd.Socket("0.0.0.0", PORT)
|
serversocket = luci.httpd.Socket("0.0.0.0", PORT)
|
||||||
|
|
||||||
|
|
|
@ -118,10 +118,9 @@ function Daemon.step(self)
|
||||||
|
|
||||||
if self.debug then
|
if self.debug then
|
||||||
self:dprint(tostring(client[1]) .. " returned")
|
self:dprint(tostring(client[1]) .. " returned")
|
||||||
end
|
if not stat then
|
||||||
|
self:dprint("Error in " .. tostring(client[1]) .. " " .. err)
|
||||||
if not stat and self.debug then
|
end
|
||||||
self:dprint("Error in " .. tostring(client[1]) .. " " .. err)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue