From df8f52494072926e86f590bbd6fc2589441f7772 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 23 Jun 2008 21:30:44 +0000 Subject: [PATCH] * libs/httpd: Tuned Garbage Collection --- libs/httpd/host/runluci | 1 + libs/httpd/luasrc/httpd.lua | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/httpd/host/runluci b/libs/httpd/host/runluci index 09039f553..b82efce1c 100755 --- a/libs/httpd/host/runluci +++ b/libs/httpd/host/runluci @@ -7,6 +7,7 @@ require("luci.httpd.handler.luci") DOCROOT = arg[1] PORT = 8080 +collectgarbage("setpause", 150) serversocket = luci.httpd.Socket("0.0.0.0", PORT) diff --git a/libs/httpd/luasrc/httpd.lua b/libs/httpd/luasrc/httpd.lua index d0a07faa7..6524bc1de 100644 --- a/libs/httpd/luasrc/httpd.lua +++ b/libs/httpd/luasrc/httpd.lua @@ -118,10 +118,9 @@ function Daemon.step(self) if self.debug then self:dprint(tostring(client[1]) .. " returned") - end - - if not stat and self.debug then - self:dprint("Error in " .. tostring(client[1]) .. " " .. err) + if not stat then + self:dprint("Error in " .. tostring(client[1]) .. " " .. err) + end end end end -- 2.11.0