Hi

No you cannot disable this for auth only failures. There can be
different reasons for auth failures, so can you tell us exactly what
auth errors you see returned so we can find out how to skip retry.

You are welcome to dive into the source code and if possible provide a
PR. Mind that this must be done on the main branch for the next 3.14.0
release.


On Tue, Nov 9, 2021 at 7:50 PM Clark Kent Nielsen
<[email protected]> wrote:
>
> Hi, my team and I are experiencing an issue with Camel and SFTP. We've 
> noticed that, when "maximumReconnectAttempts" is set, this applies to 
> authentication failures as well, meaning that Camel will keep trying to 
> connect with the same bad credentials until maximumReconnectAttempts has been 
> reached. We're pairing Camel with Akka, so this often results in an Akka 
> timeout before Camel can reply with an auth failure message. Is there a valid 
> reason to reattempt auth credentials in the same connection, and if so, is 
> there an option to disable maximumReconnectAttempts for auth only?
>
> Thanks for your help!
>
> Clark
>
>


-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to