Skip to content

Commit

Permalink
may resolve issue 20 in lb
Browse files Browse the repository at this point in the history
(cherry picked from commit 6a5ce75558ec80cd27f4d274e275dc408ee719f7)
  • Loading branch information
kostyantynnosach-mobius authored and Matthieu Casanova committed Jan 15, 2023
1 parent 44f82e8 commit 6ce1598
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gov/nist/javax/sip/stack/SSLStateMachine.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,10 @@ private void unwrap(ByteBuffer src, ByteBuffer dst) throws Exception {
+ " Packet buffer size: " + sslEngine.getSession().getPacketBufferSize()
+ " new buffer size: " + sslEngine.getSession().getPacketBufferSize() + dst.position());
}
ByteBuffer newBuf = channel.prepareAppDataBuffer(sslEngine.getSession().getPacketBufferSize() + dst.position());
dst.flip();
newBuf.put(dst);
//ByteBuffer newBuf = channel.prepareAppDataBuffer(sslEngine.getSession().getPacketBufferSize() + dst.position());
//dst.flip();
//newBuf.put(dst);
ByteBuffer newBuf = channel.prepareAppDataBuffer(sslEngine.getSession().getPacketBufferSize());
dst = newBuf;
if(logger.isLoggingEnabled(LogWriter.TRACE_DEBUG)) {
logger.logDebug(" new outNetBuffer remaining: " + dst.remaining()
Expand Down

0 comments on commit 6ce1598

Please sign in to comment.