[
https://issues.apache.org/jira/browse/SSHD-439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Goldstein Lyor updated SSHD-439:
--------------------------------
Attachment: 0041-SSHD-439-Re-use-read-buffer-in-Nio2Session.patch
Note: the patch also contains an enhancement allow the user to configure the
size of the read buffer via _FactoryManager_ properties
> 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
> Attachments: 0041-SSHD-439-Re-use-read-buffer-in-Nio2Session.patch
>
>
> 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)