Luigi De Masi created CAMEL-22916:
-------------------------------------

             Summary: 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


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