You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (JIRA)" <ji...@apache.org> on 2011/05/26 22:07:47 UTC

[jira] [Created] (QPID-3282) Potential bug when checking socket connections for identical local and remote endpoint

Potential bug when checking socket connections for identical local and remote endpoint
--------------------------------------------------------------------------------------

                 Key: QPID-3282
                 URL: https://issues.apache.org/jira/browse/QPID-3282
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker, C++ Client
            Reporter: Andrew Stitcher
            Assignee: Andrew Stitcher
            Priority: Minor
             Fix For: 0.11


Currently there is a check in Socket::connect that tries to make sure we don't try to connect to the same endpoint that the local end is bound to, this can happen in rare circumstances when connecting to localhost when the OS decides to bind the local end to a port that has just been given up by an exiting application that we are just about to retry connecting to.

However the existing test doesn't canonicalise the endpoint names so it might try to do a string compare of "localhost:1234" with "127.0.0.1:1234" and fail even though it should succeed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Resolved] (QPID-3282) Potential bug when checking socket connections for identical local and remote endpoint

Posted by "Andrew Stitcher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Stitcher resolved QPID-3282.
-----------------------------------

    Resolution: Fixed

> Potential bug when checking socket connections for identical local and remote endpoint
> --------------------------------------------------------------------------------------
>
>                 Key: QPID-3282
>                 URL: https://issues.apache.org/jira/browse/QPID-3282
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker, C++ Client
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>            Priority: Minor
>             Fix For: 0.11
>
>
> Currently there is a check in Socket::connect that tries to make sure we don't try to connect to the same endpoint that the local end is bound to, this can happen in rare circumstances when connecting to localhost when the OS decides to bind the local end to a port that has just been given up by an exiting application that we are just about to retry connecting to.
> However the existing test doesn't canonicalise the endpoint names so it might try to do a string compare of "localhost:1234" with "127.0.0.1:1234" and fail even though it should succeed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org