qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stitcher (JIRA)" <j...@apache.org>
Subject [jira] [Created] (QPID-3282) Potential bug when checking socket connections for identical local and remote endpoint
Date Thu, 26 May 2011 20:07:47 GMT
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


Mime
View raw message