git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Concurrent FTP endpoints close each others session


Hi,

We have a Camel application which is running multiple FTP consumers to the same server and it seems as if one transaction failing affects others, like Client A sending GOODBYE kills Client B still running STOR (please see the attached log).

[2018-04-05 09:53:28,718][2188512939-11851-19450835297][TRACE][org.apache.camel.component.file.remote.FtpOperations][[]][2188512939-11851-19450835297] doStoreFile(file1.xml)
[2018-04-05 09:53:28,721][2188512939-11851-19450835297][DEBUG][org.apache.camel.component.file.remote.FtpOperations][[]][2188512939-11851-19450835297] About to store file: file1.xml using stream: java.io.ByteArrayInputStream@10adca16
[2018-04-05 09:53:28,721][2188512939-11851-19450835297][TRACE][org.apache.camel.component.file.remote.FtpOperations][[]][2188512939-11851-19450835297] Client storeFile: file1.xml
[2018-04-05 09:53:28,786][2188512931-11851-19450835141][TRACE][org.apache.camel.component.file.remote.FtpOperations][[]][2188512931-11851-19450835141] Client disconnect
[2018-04-05 09:53:28,786][2188512931-11851-19450835141][DEBUG][org.apache.camel.component.file.remote.RemoteFileProducer][[]][2188512931-11851-19450835141] Disconnecting from: ftp://secrethost:21/?binary=false&disconnect=true&fastExistsCheck=true&fileExist=Override&ftpClient.connectTimeout=30000&ftpClient.dataTimeout=30000&ftpClient.defaultTimeout=30000&ftpClient.receiveDataSocketBufferSize=30720&ftpClient.sendDataSocketBufferSize=30720&ftpClient.strictReplyParsing=false&passiveMode=true&password=xxxxxx&reconnectDelay=1000&soTimeout=30000&stepwise=false&username=user
[2018-04-05 09:53:28,786][2188512931-11851-19450835141][TRACE][org.apache.camel.component.file.remote.FtpOperations][[]][2188512931-11851-19450835141] Client logout
[2018-04-05 09:53:29,135][2188512931-11851-19450835141][TRACE][org.apache.camel.component.file.remote.FtpOperations][[]][2188512931-11851-19450835141] Client disconnect
[2018-04-05 09:53:29,135][2188512939-11851-19450835297][DEBUG][org.apache.camel.component.file.remote.RemoteFileProducer][[]][2188512939-11851-19450835297] Exception occurred during stopping: File operation failed: null Socket closed. Code: 221

Doing the same thing with Http4 works because it does connection pooling.

Kind regards,
Florian
CONFIDENTIALITY: This email and any files transmitted with it are confidential, may be legally privileged and are intended solely for the use of the individual or entity to whom they are addressed. If this has come to you in error, you must not copy, distribute, disclose or use any of the information it contains. Please notify the sender immediately and delete them from your system. PRIVACY: Perform Media Services Ltd (a member of the Perform Group, with Companies House registration number 3426471) may monitor email traffic data and also the content of email for the purposes of security and staff training. For information on how the Perform Group processes your information, please refer to http://www.performgroup.com/privacy-notice/. SECURITY: Please be aware that emails are not secure and may contain viruses. AUTHORITY: Any views or opinions expressed in this email are solely those of the sender and do not necessarily represent those of the Perform Group. COPYRIGHT: Copyright of this email and any attachments belongs to Perform Group Limited, Companies House registration number 6324278. Further information about Perform Group is available at www.performgroup.com