Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-1722

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • M1, M2, M2.1, M3, M4
    • 0.5
    • C++ Broker, C++ Client
    • 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

      Attachments

        Activity

          People

            astitcher Andrew Stitcher
            astitcher Andrew Stitcher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: