From: markt Date: Mon, 3 Oct 2011 19:50:09 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51630 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c94e9f7dd5a0a8cdcee204f401e492ebb805fa56;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51630 Correct bug in async examples. Remove unnecessary call to AsyncContext.complete() that triggered an ISE. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1178542 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/webapps/examples/WEB-INF/classes/async/Async0.java b/webapps/examples/WEB-INF/classes/async/Async0.java index 93dd0a0d4..4861a2bac 100644 --- a/webapps/examples/WEB-INF/classes/async/Async0.java +++ b/webapps/examples/WEB-INF/classes/async/Async0.java @@ -39,7 +39,6 @@ public class Async0 extends HttpServlet { log.info("Received dispatch, completing on the worker thread."); log.info("After complete called started:"+req.isAsyncStarted()); resp.getWriter().write("Async dispatch worked:+"+System.currentTimeMillis()+"\n"); - req.getAsyncContext().complete(); } else { resp.setContentType("text/plain"); final AsyncContext actx = req.startAsync();