diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-02-12 09:12:03 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-02-12 09:12:03 +0000 |
commit | 4f2483f31aa1adb1888c15b4f10bbd780007bb10 (patch) | |
tree | dfaada94645dc06d029cc130eb6608095976611c /jrt | |
parent | 93e7f6bcba5d8cbc0d9700ec64dc6540eb935ef2 (diff) |
Reduce wrap buffers from 64k to 32k
Diffstat (limited to 'jrt')
-rw-r--r-- | jrt/src/com/yahoo/jrt/TlsCryptoSocket.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jrt/src/com/yahoo/jrt/TlsCryptoSocket.java b/jrt/src/com/yahoo/jrt/TlsCryptoSocket.java index 08c9d1138dd..56d096347b3 100644 --- a/jrt/src/com/yahoo/jrt/TlsCryptoSocket.java +++ b/jrt/src/com/yahoo/jrt/TlsCryptoSocket.java @@ -52,8 +52,8 @@ public class TlsCryptoSocket implements CryptoSocket { this.channel = channel; this.sslEngine = sslEngine; SSLSession nullSession = sslEngine.getSession(); - this.wrapBuffer = new Buffer(Math.max(0x10000, nullSession.getPacketBufferSize() * 2)); - this.unwrapBuffer = new Buffer(Math.max(0x10000, nullSession.getPacketBufferSize() * 2)); + this.wrapBuffer = new Buffer(Math.max(0x8000, nullSession.getPacketBufferSize())); + this.unwrapBuffer = new Buffer(Math.max(0x8000, nullSession.getPacketBufferSize())); // Note: Dummy buffer as unwrap requires a full size application buffer even though no application data is unwrapped this.handshakeDummyBuffer = ByteBuffer.allocate(nullSession.getApplicationBufferSize()); this.handshakeState = HandshakeState.NOT_STARTED; |