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 2015/09/11 18:41:30 UTC
svn commit: r1702514 -
/tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java
Author: markt
Date: Fri Sep 11 16:41:30 2015
New Revision: 1702514
URL: http://svn.apache.org/r1702514
Log:
Update comment
Modified:
tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java
Modified: tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java
URL: http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java?rev=1702514&r1=1702513&r2=1702514&view=diff
==============================================================================
--- tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java (original)
+++ tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java Fri Sep 11 16:41:30 2015
@@ -193,13 +193,18 @@ public class SecureNio2Channel extends N
}
/**
- * Performs SSL handshake, non blocking, but performs NEED_TASK on the same thread.<br>
- * Hence, you should never call this method using your Acceptor thread, as you would slow down
- * your system significantly.<br>
- * The return for this operation is 0 if the handshake is complete and a positive value if it is not complete.
- * In the event of a positive value coming back, reregister the selection key for the return values interestOps.
+ * Performs SSL handshake, non blocking, but performs NEED_TASK on the same
+ * thread. Hence, you should never call this method using your Acceptor
+ * thread, as you would slow down your system significantly.
+ * <p>
+ * The return for this operation is 0 if the handshake is complete and a
+ * positive value if it is not complete. In the event of a positive value
+ * coming back, the appropriate read/write will already have been called
+ * with an appropriate CompletionHandler.
+ *
+ * @return 0 if hand shake is complete, negative if the socket needs to
+ * close and positive if the handshake is incomplete
*
- * @return int - 0 if hand shake is complete, otherwise it returns a SelectionKey interestOps value
* @throws IOException
*/
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org