webmcp
changeset 86:ed22ba3a2888
Bugfix: Disable trace system for non-cgi sessions after autoloader has been installed
author | jbe |
---|---|
date | Tue Jul 03 23:39:12 2012 +0200 (2012-07-03) |
parents | 79bf3deefe21 |
children | a5106c0a9be4 |
files | framework/cgi-bin/webmcp.lua |
line diff
1.1 --- a/framework/cgi-bin/webmcp.lua Tue Jul 03 23:33:17 2012 +0200 1.2 +++ b/framework/cgi-bin/webmcp.lua Tue Jul 03 23:39:12 2012 +0200 1.3 @@ -56,13 +56,11 @@ 1.4 -- load random generator library 1.5 multirand = require 'multirand' 1.6 1.7 --- load rocketcgi library and map it to cgi, unless interactive, 1.8 --- and disable trace system, if interactive (avoids memory leakage) 1.9 +-- load rocketcgi library and map it to cgi, unless interactive 1.10 do 1.11 local option = os.getenv("WEBMCP_INTERACTIVE") 1.12 if option and option ~= "" and option ~= "0" then 1.13 cgi = nil 1.14 - trace.disable() 1.15 else 1.16 rocketcgi = require 'rocketcgi' -- TODO: no "rocketcgi" alias 1.17 cgi = rocketcgi 1.18 @@ -247,6 +245,7 @@ 1.19 1.20 -- interactive console mode 1.21 if not cgi then 1.22 + trace.disable() -- avoids memory leakage 1.23 local config_name = request.get_config_name() 1.24 if config_name then 1.25 execute.config(config_name)