You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2015/10/07 11:09:53 UTC

svn commit: r1707210 - /tomcat/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java

Author: remm
Date: Wed Oct  7 09:09:52 2015
New Revision: 1707210

URL: http://svn.apache.org/viewvc?rev=1707210&view=rev
Log:
Cleanup logic (no change).

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java?rev=1707210&r1=1707209&r2=1707210&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java Wed Oct  7 09:09:52 2015
@@ -86,9 +86,9 @@ public class SecureNio2Channel extends N
             public void completed(Integer result, SocketWrapperBase<Nio2Channel> attachment) {
                 if (result.intValue() < 0) {
                     failed(new EOFException(), attachment);
-                    return;
+                } else {
+                    endpoint.processSocket(attachment, SocketStatus.OPEN_READ, false);
                 }
-                endpoint.processSocket(attachment, SocketStatus.OPEN_READ, false);
             }
             @Override
             public void failed(Throwable exc, SocketWrapperBase<Nio2Channel> attachment) {
@@ -100,9 +100,9 @@ public class SecureNio2Channel extends N
             public void completed(Integer result, SocketWrapperBase<Nio2Channel> attachment) {
                 if (result.intValue() < 0) {
                     failed(new EOFException(), attachment);
-                    return;
+                } else {
+                    endpoint.processSocket(attachment, SocketStatus.OPEN_WRITE, false);
                 }
-                endpoint.processSocket(attachment, SocketStatus.OPEN_WRITE, false);
             }
             @Override
             public void failed(Throwable exc, SocketWrapperBase<Nio2Channel> attachment) {



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