allowed requests to be attached until finally clause is reached

This commit is contained in:
hns 2001-02-26 22:04:02 +00:00
parent ac52a14efc
commit 9b0680e5d6
2 changed files with 9 additions and 12 deletions

View file

@ -259,6 +259,7 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn
res.write ("Error in application: <b>" + x.getMessage () + "</b>"); res.write ("Error in application: <b>" + x.getMessage () + "</b>");
} finally { } finally {
if (primaryRequest) { if (primaryRequest) {
activeRequests.remove (req);
releaseEvaluator (ev); releaseEvaluator (ev);
res.close (); // this needs to be done before sending it back res.close (); // this needs to be done before sending it back
} else { } else {

View file

@ -533,7 +533,6 @@ public class RequestEvaluator implements Runnable {
this.user = user; this.user = user;
this.res = new ResponseTrans (); this.res = new ResponseTrans ();
try {
app.activeRequests.put (req, this); app.activeRequests.put (req, this);
checkThread (); checkThread ();
@ -544,9 +543,6 @@ public class RequestEvaluator implements Runnable {
res.reset (); res.reset ();
res.write ("<b>Error in application '"+app.getName()+"':</b> <br><br><pre>Request timed out.</pre>"); res.write ("<b>Error in application '"+app.getName()+"':</b> <br><br><pre>Request timed out.</pre>");
} }
} finally {
app.activeRequests.remove (req);
}
return res; return res;
} }