Goldstein Lyor created SSHD-439:
-----------------------------------
Summary: Re-use read buffer in Nio2Session
Key: SSHD-439
URL: https://issues.apache.org/jira/browse/SSHD-439
Project: MINA SSHD
Issue Type: Improvement
Affects Versions: 1.0.0
Reporter: Goldstein Lyor
The original asynchronous calls recursively _startReading()_ upon successful
handling of the incoming message. This means that a **new** _ByteBuffer_ of
size 32K is created every time this happens (not to mention a new object
reference for the _Readable_ wrapper). Obviously, we can (and should) re-use
the buffer once handling of the previous message is completed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)