Author: remm
Date: Tue Feb 13 15:55:11 2018
New Revision: 1824154
URL: http://svn.apache.org/viewvc?rev=1824154&view=rev
Log:
Add apparently missing code for NIO2. Not sure if it's really used though.
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=1824154&r1=1824153&r2=1824154&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java
(original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/SecureNio2Channel.java Tue Feb
13 15:55:11 2018
@@ -896,6 +896,10 @@ public class SecureNio2Channel extends N
getBufHandler().expand(
sslEngine.getSession().getApplicationBufferSize());
dst2 = getBufHandler().getReadBuffer();
+ } else if (dst2 ==
getAppReadBufHandler().getByteBuffer()) {
+ getAppReadBufHandler()
+
.expand(sslEngine.getSession().getApplicationBufferSize());
+ dst2 =
getAppReadBufHandler().getByteBuffer();
} else {
// Can't expand the buffer as there is
no way to signal
// to the caller that the buffer has
been replaced.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]