You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (JIRA)" <qp...@incubator.apache.org> on 2009/03/09 22:21:51 UTC

[jira] Created: (QPID-1722) Use of gethostbyname() in Socket.cpp isn't thread safe

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


[jira] Closed: (QPID-1722) Use of gethostbyname() in Socket.cpp isn't thread safe

Posted by "Andrew Stitcher (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Stitcher closed QPID-1722.
---------------------------------

    Resolution: Fixed

> 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: M1, M2, M2.1, M3, M4
>            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