You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/08/08 07:14:00 UTC

[jira] [Commented] (QPID-8221) [qpid-cpp] Client open connections to broker and waits forever

    [ https://issues.apache.org/jira/browse/QPID-8221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16572782#comment-16572782 ] 

ASF subversion and git services commented on QPID-8221:
-------------------------------------------------------

Commit 5aa1080981a657bd6f01483d6b24469e6e838ab5 in qpid-cpp's branch refs/heads/master from Gordon Sim
[ https://git-wip-us.apache.org/repos/asf?p=qpid-cpp.git;h=5aa1080 ]

QPID-8221: patch from Chen Wan to add connection timeout to client


> [qpid-cpp] Client open connections to broker and waits forever
> --------------------------------------------------------------
>
>                 Key: QPID-8221
>                 URL: https://issues.apache.org/jira/browse/QPID-8221
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: qpid-cpp-1.38.0
>         Environment: * qpid-cpp 1.38 c++ client/broker
>  * AMQP 0-10
>  * RHEL 7.5
>            Reporter: Chen Wan
>            Assignee: Justin Ross
>            Priority: Major
>              Labels: patch
>         Attachments: qpidcpp_client_connect_timeout.patch
>
>
> I have a problem with qpid-cpp C++ clients stuck on the open connection call while reconnecting with the broker.   It is a rare event, sometimes takes weeks or months to happen.  But when it occurs, I have to manually restart the client process in order to re-establish the broker connection. 
> I have summarized the details of this issue in this mailing list post: http://qpid.2158936.n2.nabble.com/Open-connection-to-broker-waits-forever-td7678381.html
> Attached is a patch (qpidcpp_client_connect_timeout.patch) to add a timeout to qpid-cpp client's open connection call.  A new option called "connect-timeout" can be used to specify how long to wait for the connection::open call in seconds.  When the "connect-timeout" is set, qpid-cpp client calls "waitFor" with a timeout. 
> I have tested it in my environment, and it seems to be able to time out properly when the open call gets stuck.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org