tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1137044 - /tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java
Date Fri, 17 Jun 2011 21:41:32 GMT
Author: markt
Date: Fri Jun 17 21:41:32 2011
New Revision: 1137044

URL: http://svn.apache.org/viewvc?rev=1137044&view=rev
Log:
Connector refactoring
No functional change

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

Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java?rev=1137044&r1=1137043&r2=1137044&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java Fri Jun 17 21:41:32 2011
@@ -161,12 +161,14 @@ public class Http11Protocol extends Abst
                     state = processor.process(socket);
                 }
 
-                if (state == SocketState.LONG) {
+                if (processor.isAsync()) {
+                    state = processor.asyncPostProcess();
+                }
+
+                if (state == SocketState.LONG ||
+                        state == SocketState.ASYNC_END) {
                     connections.put(socket, processor);
                     socket.setAsync(true);
-                    // longPoll may change socket state (e.g. to trigger a
-                    // complete or dispatch)
-                    return processor.asyncPostProcess();
                 } else {
                     socket.setAsync(false);
                     processor.recycle();



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


Mime
View raw message