webmcp
changeset 85:79bf3deefe21
Disable trace system for interactive (non-cgi) sessions
author | jbe |
---|---|
date | Tue Jul 03 23:33:17 2012 +0200 (2012-07-03) |
parents | 079fb18d9b5f |
children | ed22ba3a2888 |
files | framework/cgi-bin/webmcp.lua |
line diff
1.1 --- a/framework/cgi-bin/webmcp.lua Thu Jun 28 03:37:57 2012 +0200 1.2 +++ b/framework/cgi-bin/webmcp.lua Tue Jul 03 23:33:17 2012 +0200 1.3 @@ -56,11 +56,13 @@ 1.4 -- load random generator library 1.5 multirand = require 'multirand' 1.6 1.7 --- load rocketcgi library and map it to cgi 1.8 +-- load rocketcgi library and map it to cgi, unless interactive, 1.9 +-- and disable trace system, if interactive (avoids memory leakage) 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