Double the SSL input packet buffer size 13/5013/1
authorJason Ye <yisye@cisco.com>
Thu, 30 Jan 2014 06:14:39 +0000 (22:14 -0800)
committerJason Ye <yisye@cisco.com>
Thu, 30 Jan 2014 06:14:39 +0000 (22:14 -0800)
Change-Id: I9aabf4e99c55eb788314f02755eb91df7f97a8da
Signed-off-by: Jason Ye <yisye@cisco.com>
opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/SecureMessageReadWriteService.java

index 90b47cf26421e6ff6a05c0e6ef21451c52173ac9..d60bcab8b32fdf299d68505c348fe5b4fc5ec831 100644 (file)
@@ -407,9 +407,9 @@ public class SecureMessageReadWriteService implements IMessageReadWrite {
         this.myAppData = ByteBuffer
                 .allocate(session.getApplicationBufferSize());
         this.peerAppData = ByteBuffer.allocate(session
-                .getApplicationBufferSize());
+                .getApplicationBufferSize() * 2);
         this.myNetData = ByteBuffer.allocate(session.getPacketBufferSize());
-        this.peerNetData = ByteBuffer.allocate(session.getPacketBufferSize());
+        this.peerNetData = ByteBuffer.allocate(session.getPacketBufferSize() * 2);
     }
 
     @Override