Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
20.4k views
in Java FTP by (360 points)
I got the following error when I try to upload a file to server using FTPS implict:

com.enterprisedt.net.ftp.FTPException: 425 Data channel timed out due to not meeting the minimum bandwidth requirement.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:1223)
at com.enterprisedt.net.ftp.FTPClient.validateTransfer(FTPClient.java:2554)
at com.enterprisedt.net.ftp.FTPClient.a(FTPClient.java:2514)
at com.enterprisedt.net.ftp.FTPClient.put(FTPClient.java:2481)
at com.enterprisedt.net.ftp.FTPClient.put(FTPClient.java:2442)

What is it about?

For the same connection, I'm able to download and list files using get() and dir().

13 Answers

0 votes
by (162k points)
Ok, try this:

ftp.setConfigFlags(SSLFTPClient.ConfigFlags.DISABLE_DATA_WAIT_ON_CLOSE);


And if that doesn't work:

ftp.setConfigFlags(SSLFTPClient.ConfigFlags.DISABLE_SSL_CLOSURE);
0 votes
by (360 points)
Either way works!!!

Thanks a lot for your prompt replies! Happy Holidays!


-----------------------
YongT from Toronto
0 votes
by (162k points)
That's great. This just stops the client waiting for an acknowledgement from the server after sending an SSL close on the socket. For some reason this server doesn't send it for uploads. There's no harm in using this flag.

Categories

...