You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Terence Marks (JIRA)" <ji...@apache.org> on 2015/07/29 10:01:05 UTC

[jira] [Created] (DIRMINA-1018) fetchAppBuffer shrink

Terence Marks created DIRMINA-1018:
--------------------------------------

             Summary: fetchAppBuffer shrink
                 Key: DIRMINA-1018
                 URL: https://issues.apache.org/jira/browse/DIRMINA-1018
             Project: MINA
          Issue Type: Improvement
          Components: SSL
    Affects Versions: 2.0.9
            Reporter: Terence Marks
            Priority: Minor
             Fix For: 2.0.10


Recently an optimisation was added (DIRMINA-1017) which can increase the capacity of member SslHandler.appBuffer. Testing found that whenever the buffer was increased, it was increased to ~16000 bytes, where only ~4000 bytes of that frame was being used.

Similar to how SslHandler.fetchOutNetBuffer() returns the outNetBuffer with:
...
return answer.shrink();

could I recommend the same is done for SslHandler.fetchAppBuffer()?

...
return appBuffer.shrink();

Thanks,
Terence



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)