You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Baptiste Robert <ba...@gmail.com> on 2018/03/23 14:57:32 UTC

qpid-proton cpp - Wrong auth with reconnect options lead to error : Too many reconnect attempts

Hello,

I've an annoying issue when I define reconnect_options and call connect
method on the proton::container with this option. If the authentication is
wrong (bad password/login), I got the following error : [proton:io] - [Too
many reconnect attempts (40)]
In my use case, I really want to know if it fails because the auth was bad
or if the server is just unreachable.
If I remove the reconnect_options then I get this information, but why I
cannot get both ?

Thank you,

-- 
Baptiste Robert

Re: qpid-proton cpp - Wrong auth with reconnect options lead to error : Too many reconnect attempts

Posted by Justin Ross <ju...@gmail.com>.
Hi, Baptiste.  There's something coming soon in Proton C 0.22.0 that may
help with that.

https://issues.apache.org/jira/browse/PROTON-1589

This is on master now, and the 0.22.0 release process will start this month.

On Fri, Mar 23, 2018 at 7:57 AM, Baptiste Robert <baptisterobert38@gmail.com
> wrote:

> Hello,
>
> I've an annoying issue when I define reconnect_options and call connect
> method on the proton::container with this option. If the authentication is
> wrong (bad password/login), I got the following error : [proton:io] - [Too
> many reconnect attempts (40)]
> In my use case, I really want to know if it fails because the auth was bad
> or if the server is just unreachable.
> If I remove the reconnect_options then I get this information, but why I
> cannot get both ?
>
> Thank you,
>
> --
> Baptiste Robert
>