Qpid
  1. Qpid
  2. QPID-1722

Use of gethostbyname() in Socket.cpp isn't thread safe

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: M1, M2, M2.1, M3, M4
    • Fix Version/s: 0.5
    • Component/s: C++ Broker, C++ Client
    • Labels:
      None

      Description

      Using gethostbyname() like this in multiple threads at once (for instance connecting simultaneously) may cause client/broker crashes

      The best fix is to replace the old API used with the re-entrant and more featureful getaddrinfo() API

        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