We are using Indy TIdFTP
with FileZilla
0.9.39 beta FTP Server.
Frequently (not always) our client is receiving the following exception:
exception class : EIdReplyRFCError
exception message : Can't open data connection.
main thread ($d38):
006352e6 +03a IdReplyRFC 258 +1 TIdReplyRFC.RaiseReplyError
0063af39 +005 IdTCPConnection 540 +0 TIdTCPConnection.RaiseExceptionForLastCmdResult
0063b17c +050 IdTCPConnection 644 +10 TIdTCPConnection.CheckResponse
0063aed2 +03a IdTCPConnection 529 +2 TIdTCPConnection.GetResponse
0065986d +1ad IdFTP 1460 +29 TIdFTP.InternalGet
006595bb +0f3 IdFTP 1386 +16 TIdFTP.List
This error occurs only inside his network! and it's not consistent .
I was unable to reproduce this error on our network. I have searched all over the web to find a solution and did not find anything. Is there anything could be done to fix this???
EDIT: We are using "Passive" mode.
If someone has the same problem, it might be the case of TLS, some servers have problems with this. You can turn if of/on:
void __fastcall TForm1::turnOffTLS(TIdFTP *choosenFTP){ choosenFTP->DataPortProtection=ftpdpsClear; choosenFTP->UseTLS=utNoTLSSupport; }
void __fastcall TForm1::turnOnTLS(TIdFTP *choosenFTP){ choosenFTP->UseTLS=utUseExplicitTLS; choosenFTP->DataPortProtection=ftpdpsPrivate; }
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.