tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1178542 - /tomcat/trunk/webapps/examples/WEB-INF/classes/async/Async0.java
Date Mon, 03 Oct 2011 19:50:10 GMT
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


Mime
View raw message