Qpid
  1. Qpid
  2. QPID-3282

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11
    • Component/s: C++ Broker, C++ Client
    • Labels:
      None

      Description

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Andrew Stitcher
            Reporter:
            Andrew Stitcher
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development