Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.5.0
-
None
-
Important
Description
When invoking writePacket, I quite often get the following exception:
Caused by: java.lang.ArrayIndexOutOfBoundsException arraycopy: last source index 32768 out of bounds for byte[8192] at java.base/java.lang.System.arraycopy(Native Method) at org.apache.sshd.common.util.buffer.ByteArrayBuffer.putRawBytes(ByteArrayBuffer.java:230) at org.apache.sshd.common.channel.ChannelAsyncOutputStream.createSendBuffer(ChannelAsyncOutputStream.java:229) at org.apache.sshd.common.channel.ChannelAsyncOutputStream.doWriteIfPossible(ChannelAsyncOutputStream.java:164) at org.apache.sshd.common.channel.ChannelAsyncOutputStream.writePacket(ChannelAsyncOutputStream.java:70)
This never happened in 2.4.0, so it is definitely a regression
Attachments
Issue Links
- is related to
-
SSHD-1031 Async write: completion listener is not always invoked
- Closed