[ 
https://issues.apache.org/jira/browse/CAMEL-22916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-22916:
--------------------------------
    Fix Version/s: 4.14.5

> camel-ftp - RemoteFileProducer ignores NOOP result when sendNoop() returns 
> false without exception
> --------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-22916
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22916
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-file
>    Affects Versions: 4.17.0
>            Reporter: Luigi De Masi
>            Assignee: Luigi De Masi
>            Priority: Major
>             Fix For: 4.14.5, 4.18.0
>
>
> When {{RemoteFileProducer.preWriteCheck()}} sends a NOOP command to verify 
> the connection is alive, it only marks the connection as invalid {{(loggedIn 
> = false)}} when {{sendNoop()}} throws an exception.
> If {{sendNoop()}} returns false (indicating a dead connection without 
> throwing), the loggedIn flag remains true.
>   This causes connectIfNecessary() to potentially skip reconnection because 
> its condition:
> {code:java}
>   if (!loggedIn || !getOperations().isConnected())
> {code}
> may evaluate to false when isConnected() returns true for a stale socket.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to