Only call asyncPostProcess for async requests
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 10 Oct 2010 19:14:13 +0000 (19:14 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 10 Oct 2010 19:14:13 +0000 (19:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1006341 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/Http11AprProtocol.java

index 554c2a3..100eaf0 100644 (file)
@@ -355,8 +355,10 @@ public class Http11AprProtocol extends AbstractHttp11Protocol {
 
                 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