checkThread (); wait (app.requestTimeout); if (reqtype != NONE) { IServer.getLogger().log ("Stopping Thread for Request "+app.getName()+"/"+req.path); stopThread (); res.reset (); res.write ("<b>Error in application '"+app.getName()+"':</b> <br><br><pre>Request timed out.</pre>");
try { app.activeRequests.put (req, this);  checkThread (); wait (app.requestTimeout); if (reqtype != NONE) { IServer.getLogger().log ("Stopping Thread for Request "+app.getName()+"/"+req.path); stopThread (); res.reset (); res.write ("<b>Error in application '"+app.getName()+"':</b> <br><br><pre>Request timed out.</pre>"); } } finally { app.activeRequests.remove (req);
    public synchronized ResponseTrans invoke (RequestTrans req, User user)  throws Exception {	this.reqtype = HTTP;	this.req = req;	this.user = user;	this.res = new ResponseTrans ();	checkThread ();	wait (app.requestTimeout); 	if (reqtype != NONE) {	    IServer.getLogger().log ("Stopping Thread for Request "+app.getName()+"/"+req.path);	    stopThread ();	    res.reset ();	    res.write ("<b>Error in application '"+app.getName()+"':</b> <br><br><pre>Request timed out.</pre>");	}	return res;    }