You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2011/10/03 21:50:10 UTC

svn commit: r1178542 - /tomcat/trunk/webapps/examples/WEB-INF/classes/async/Async0.java

Author: markt
Date: Mon Oct  3 19:50:09 2011
New Revision: 1178542

URL: http://svn.apache.org/viewvc?rev=1178542&view=rev
Log:
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.

Modified:
    tomcat/trunk/webapps/examples/WEB-INF/classes/async/Async0.java

Modified: tomcat/trunk/webapps/examples/WEB-INF/classes/async/Async0.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/async/Async0.java?rev=1178542&r1=1178541&r2=1178542&view=diff
==============================================================================
--- tomcat/trunk/webapps/examples/WEB-INF/classes/async/Async0.java (original)
+++ tomcat/trunk/webapps/examples/WEB-INF/classes/async/Async0.java Mon Oct  3 19:50:09 2011
@@ -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();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org