No functional change - make it the same as BIO & APR
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 7 Jul 2011 21:23:42 +0000 (21:23 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 7 Jul 2011 21:23:42 +0000 (21:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1144050 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/Http11NioProcessor.java

index afd989b..f857f0d 100644 (file)
@@ -215,10 +215,14 @@ public class Http11NioProcessor extends AbstractHttp11Processor {
 
         if (error) {
             return SocketState.CLOSED;
-        } else if (!isAsync()) {
-            return (keepAlive)?SocketState.OPEN:SocketState.CLOSED;
-        } else {
+        } else if (isAsync()) {
             return SocketState.LONG;
+        } else {
+            if (!keepAlive) {
+                return SocketState.CLOSED;
+            } else {
+                return SocketState.OPEN;
+            }
         }
     }