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 2016/04/07 00:27:08 UTC
svn commit: r1738060 -
/tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
Author: markt
Date: Wed Apr 6 22:27:07 2016
New Revision: 1738060
URL: http://svn.apache.org/viewvc?rev=1738060&view=rev
Log:
Investigating BZ 59261
Improve test for whether or not current request is async.
Modified:
tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
Modified: tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java?rev=1738060&r1=1738059&r2=1738060&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java Wed Apr 6 22:27:07 2016
@@ -342,8 +342,7 @@ public class CoyoteAdapter implements Ad
// Calling the container
connector.getService().getContainer().getPipeline().getFirst().invoke(request, response);
}
- AsyncContextImpl asyncConImpl = (AsyncContextImpl)request.getAsyncContext();
- if (asyncConImpl != null) {
+ if (request.isAsync()) {
async = true;
ReadListener readListener = req.getReadListener();
if (readListener != null && request.isFinished()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org