qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stitcher (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Created: (QPID-1722) Use of gethostbyname() in Socket.cpp isn't thread safe
Date Mon, 09 Mar 2009 21:21:51 GMT
Use of gethostbyname() in Socket.cpp isn't thread safe
------------------------------------------------------

                 Key: QPID-1722
                 URL: https://issues.apache.org/jira/browse/QPID-1722
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker, C++ Client
    Affects Versions: M4, M3, M2.1, M2, M1
            Reporter: Andrew Stitcher
            Assignee: Andrew Stitcher
             Fix For: M5


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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message