You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2012/05/04 15:52:48 UTC

[jira] [Commented] (DIRMINA-891) SSLHandler throws SSLException during handshake that sequence number triggers

    [ https://issues.apache.org/jira/browse/DIRMINA-891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268367#comment-13268367 ] 

Emmanuel Lecharny commented on DIRMINA-891:
-------------------------------------------

I do think there is some potential issue in this area... The way the SSLEngine works is, frankly, stupid... You have to allocate the biggest possible buffer, just in case.

Can you provide a small test case that can help us to debug the issue, and find the best possible fix ?

Many thanks !
                
> SSLHandler throws SSLException during handshake that sequence number triggers
> -----------------------------------------------------------------------------
>
>                 Key: DIRMINA-891
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-891
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.3, 2.0.4
>            Reporter: Ali
>
> During second re-handshake that triggered to avoid sequence number overlap by SSLEngine, SSLEngine's unwrap method may return SSLEngineResult with BUFFER_OVERFLOW status and NEED_WRAP handshake status.
> In this case checkStatus method of SSLHandler will throw SSLException.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira