lib/manager.js
function ScriptManager() {

  // child process
  this.ps = null;

  // script execution limit in milliseconds
  this._limit = 5000;

  // flag determining if a script is busy executing
  this._busy = false;

  // flag determining if script execution issued
  // any write commands
  this._written = false;

  // currently executing script name
  this._script = null;

  // injected reference to the command handlers
  this._commands = {};

  // script limit timeout listener
  this.onTimeout = this.onTimeout.bind(this);
}
function ScriptManager() {

  // child process
  this.ps = null;

  // script execution limit in milliseconds
  this._limit = 5000;

  // flag determining if a script is busy executing
  this._busy = false;

  // flag determining if script execution issued
  // any write commands
  this._written = false;

  // currently executing script name
  this._script = null;

  // injected reference to the command handlers
  this._commands = {};

  // script limit timeout listener
  this.onTimeout = this.onTimeout.bind(this);
}
function ScriptManager ( ) { // child process this . ps = null ; // script execution limit in milliseconds this . _limit = 5000 ; // flag determining if a script is busy executing this . _busy = false ; // flag determining if script execution issued // any write commands this . _written = false ; // currently executing script name this . _script = null ; // injected reference to the command handlers this . _commands = { } ; // script limit timeout listener this . onTimeout = this . onTimeout . bind ( this ) ; }
Manages script evaluation, compilation and command execution.

Scripts are executed in a child process so that a script that contains
an infinite loop or other bad code will not prevent this process
from serving client requests.
Manages script evaluation compilation and command execution .