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 2010/10/10 21:14:13 UTC
svn commit: r1006341 -
/tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
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