N NomeUn Member Mar 1, 2022 #1 Hi everyone. I have some problems with FTP. I use FTP Commands like Download, Upload, and List and everythings works well but if I wait too much, I have connections errors. Code: FTP.Initialize("FTP","xxx.x.x.xx",21,"xxxxxxxxxx","xxxxxxxxxxxxxxxx") FTP.PassiveMode = True FTP.TimeoutMs = 600000 Dim ctm As CustomTrustManager ctm.InitializeAcceptAll FTP.SetCustomSSLTrustManager(ctm) I have this errors : org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received. Server closed connection. or org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication. or java.net.SocketException: Broken pipe Thanks for Help
Hi everyone. I have some problems with FTP. I use FTP Commands like Download, Upload, and List and everythings works well but if I wait too much, I have connections errors. Code: FTP.Initialize("FTP","xxx.x.x.xx",21,"xxxxxxxxxx","xxxxxxxxxxxxxxxx") FTP.PassiveMode = True FTP.TimeoutMs = 600000 Dim ctm As CustomTrustManager ctm.InitializeAcceptAll FTP.SetCustomSSLTrustManager(ctm) I have this errors : org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received. Server closed connection. or org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication. or java.net.SocketException: Broken pipe Thanks for Help
Erel B4X founder Staff member Licensed User Longtime User Mar 2, 2022 #2 If the FTP connection breaks after some time then you need to initialize FTP again. Upvote 0
N NomeUn Member Mar 2, 2022 #3 Thanks you very much, that's works. I don't understand, I thaught the initialize function was a passive function. Upvote 0
Thanks you very much, that's works. I don't understand, I thaught the initialize function was a passive function.