tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1006341 - /tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
Date Sun, 10 Oct 2010 19:14:13 GMT
Author: markt
Date: Sun Oct 10 19:14:13 2010
New Revision: 1006341

URL: http://svn.apache.org/viewvc?rev=1006341&view=rev
Log:
Only call asyncPostProcess for async requests

Modified:
    tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java?rev=1006341&r1=1006340&r2=1006341&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java Sun Oct 10 19:14:13
2010
@@ -355,8 +355,10 @@ public class Http11AprProtocol extends A
 
                 SocketState state = processor.process(socket);
                 if (state == SocketState.LONG) {
-                    // Check if the post processing is going to change the state
-                    state = processor.asyncPostProcess();
+                    if (processor.isAsync()) {
+                        // Check if the post processing is going to change the state
+                        state = processor.asyncPostProcess();
+                    }
                 }
                 if (state == SocketState.LONG || state == SocketState.ASYNC_END) {
                     // Need to make socket available for next processing cycle



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


Mime
View raw message