tomcat-dev mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1137041&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=1137041&r1=1137040&r2=1137041&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:35:59 2011
@@ -154,7 +154,13 @@ public class Http11Protocol extends Abst
                     processor.setSSLSupport(null);
                 }
                 
-                SocketState state = socket.isAsync()?processor.asyncDispatch(status):processor.process(socket);
+                SocketState state;
+                if (socket.isAsync()) {
+                    state = processor.asyncDispatch(status);
+                } else {
+                    state = processor.process(socket);
+                }
+
                 if (state == SocketState.LONG) {
                     connections.put(socket, processor);
                     socket.setAsync(true);



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


Mime
View raw message