You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org> on 2009/01/13 04:25:00 UTC

[jira] Created: (QPID-1571) SSL connection close does not shutdown the connection cleanly

SSL connection close does not shutdown the connection cleanly
-------------------------------------------------------------

                 Key: QPID-1571
                 URL: https://issues.apache.org/jira/browse/QPID-1571
             Project: Qpid
          Issue Type: Bug
    Affects Versions: M4
            Reporter: Rajith Attapattu
            Assignee: Rajith Attapattu
             Fix For: M4


The the SSL connection close currently throws the "SSLSender Closed" exception due to calling the send method with an empty buffer after setting "closed" to true.
Once this issue is resolved, an error in the SSL shutdown sequence was exposed. Basically we need to send the shutdown messages properly before we could terminate the underlying socket connection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-1571) SSL connection close does not shutdown the connection cleanly

Posted by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajith Attapattu updated QPID-1571:
-----------------------------------

    Assignee: Rafael H. Schloming  (was: Rajith Attapattu)

> SSL connection close does not shutdown the connection cleanly
> -------------------------------------------------------------
>
>                 Key: QPID-1571
>                 URL: https://issues.apache.org/jira/browse/QPID-1571
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: M4
>            Reporter: Rajith Attapattu
>            Assignee: Rafael H. Schloming
>             Fix For: M4
>
>         Attachments: qpid-1571.patch
>
>
> The the SSL connection close currently throws the "SSLSender Closed" exception due to calling the send method with an empty buffer after setting "closed" to true.
> Once this issue is resolved, an error in the SSL shutdown sequence was exposed. Basically we need to send the shutdown messages properly before we could terminate the underlying socket connection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-1571) SSL connection close does not shutdown the connection cleanly

Posted by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajith Attapattu updated QPID-1571:
-----------------------------------

    Attachment: qpid-1571.patch

The following patch tries to solve the issue with minimum impact to the existing code.
However we would need to revisit this logic after M4 and provide a more cleaner solution.
With this patch it passes all the ant tests run using the ssl test profile checked in QPID-1572

> SSL connection close does not shutdown the connection cleanly
> -------------------------------------------------------------
>
>                 Key: QPID-1571
>                 URL: https://issues.apache.org/jira/browse/QPID-1571
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: M4
>            Reporter: Rajith Attapattu
>            Assignee: Rajith Attapattu
>             Fix For: M4
>
>         Attachments: qpid-1571.patch
>
>
> The the SSL connection close currently throws the "SSLSender Closed" exception due to calling the send method with an empty buffer after setting "closed" to true.
> Once this issue is resolved, an error in the SSL shutdown sequence was exposed. Basically we need to send the shutdown messages properly before we could terminate the underlying socket connection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-1571) SSL connection close does not shutdown the connection cleanly

Posted by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajith Attapattu updated QPID-1571:
-----------------------------------

    Component/s: Java Client

> SSL connection close does not shutdown the connection cleanly
> -------------------------------------------------------------
>
>                 Key: QPID-1571
>                 URL: https://issues.apache.org/jira/browse/QPID-1571
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: M4
>            Reporter: Rajith Attapattu
>            Assignee: Rajith Attapattu
>             Fix For: M4
>
>
> The the SSL connection close currently throws the "SSLSender Closed" exception due to calling the send method with an empty buffer after setting "closed" to true.
> Once this issue is resolved, an error in the SSL shutdown sequence was exposed. Basically we need to send the shutdown messages properly before we could terminate the underlying socket connection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (QPID-1571) SSL connection close does not shutdown the connection cleanly

Posted by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajith Attapattu resolved QPID-1571.
------------------------------------

    Resolution: Fixed

Checked into both trunk and M4 release branch

> SSL connection close does not shutdown the connection cleanly
> -------------------------------------------------------------
>
>                 Key: QPID-1571
>                 URL: https://issues.apache.org/jira/browse/QPID-1571
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: M4
>            Reporter: Rajith Attapattu
>            Assignee: Rafael H. Schloming
>             Fix For: M4
>
>         Attachments: qpid-1571.patch
>
>
> The the SSL connection close currently throws the "SSLSender Closed" exception due to calling the send method with an empty buffer after setting "closed" to true.
> Once this issue is resolved, an error in the SSL shutdown sequence was exposed. Basically we need to send the shutdown messages properly before we could terminate the underlying socket connection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.