You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andy Goldstein (JIRA)" <ji...@apache.org> on 2011/06/04 20:48:47 UTC

[jira] [Created] (QPID-3292) Client doesn't completely honor reconnect=false Connection option

Client doesn't completely honor reconnect=false Connection option
-----------------------------------------------------------------

                 Key: QPID-3292
                 URL: https://issues.apache.org/jira/browse/QPID-3292
             Project: Qpid
          Issue Type: Bug
          Components: C++ Client
            Reporter: Andy Goldstein
            Priority: Critical


The C++ client currently does not honor the reconnect=false Connection option correctly.  If the client loses the connection to the broker, the client will attempt to reconnect one time, even if reconnect is set to false.

In qpid::client::amqp0_10::ConnectionImpl::connect, the method has !tryConnect() as the condition for the "for" loop, which means that tryConnect() will be invoked at least 1 time.  Next, in the loop body, it will look at the value of the reconnect setting, and stop if it's set to false.

The client should not try to reconnect at all if reconnect is set to false.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Assigned] (QPID-3292) Client doesn't completely honor reconnect=false Connection option

Posted by "Gordon Sim (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim reassigned QPID-3292:
--------------------------------

    Assignee: Gordon Sim

> Client doesn't completely honor reconnect=false Connection option
> -----------------------------------------------------------------
>
>                 Key: QPID-3292
>                 URL: https://issues.apache.org/jira/browse/QPID-3292
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>            Reporter: Andy Goldstein
>            Assignee: Gordon Sim
>            Priority: Critical
>
> The C++ client currently does not honor the reconnect=false Connection option correctly.  If the client loses the connection to the broker, the client will attempt to reconnect one time, even if reconnect is set to false.
> In qpid::client::amqp0_10::ConnectionImpl::connect, the method has !tryConnect() as the condition for the "for" loop, which means that tryConnect() will be invoked at least 1 time.  Next, in the loop body, it will look at the value of the reconnect setting, and stop if it's set to false.
> The client should not try to reconnect at all if reconnect is set to false.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Resolved] (QPID-3292) Client doesn't completely honor reconnect=false Connection option

Posted by "Gordon Sim (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim resolved QPID-3292.
------------------------------

    Resolution: Fixed

> Client doesn't completely honor reconnect=false Connection option
> -----------------------------------------------------------------
>
>                 Key: QPID-3292
>                 URL: https://issues.apache.org/jira/browse/QPID-3292
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>            Reporter: Andy Goldstein
>            Assignee: Gordon Sim
>            Priority: Critical
>
> The C++ client currently does not honor the reconnect=false Connection option correctly.  If the client loses the connection to the broker, the client will attempt to reconnect one time, even if reconnect is set to false.
> In qpid::client::amqp0_10::ConnectionImpl::connect, the method has !tryConnect() as the condition for the "for" loop, which means that tryConnect() will be invoked at least 1 time.  Next, in the loop body, it will look at the value of the reconnect setting, and stop if it's set to false.
> The client should not try to reconnect at all if reconnect is set to false.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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