hasContinuation = false;
requestProto = new JsgiRequest(engine.getScope(), false);
}
JsgiRequest req = new JsgiRequest(request, response, requestProto,
engine.getScope(), this);
RingoWorker worker = engine.getWorker();
try {
worker.invoke("ringo/jsgi/connector", "handleRequest", module,
function, req);
} catch (Exception x) {
List<ScriptError> errors = worker.getErrors();
boolean verbose = engine.getConfig().isVerbose();
try {
renderError(x, response, errors);
RingoRunner.reportError(x, System.err, errors, verbose);
} catch (Exception failed) {
// custom error reporting failed, rethrow original exception
// for default handling
RingoRunner.reportError(x, System.err, errors, false);
throw new ServletException(x);
}
} finally {
worker.release();
}
}