Hello Marcin, What version are you using? Make sure yoy test with the current version 3.10.0. Without a reproducible integration test, we don't have anything to debug. If you can create a PR with a smallest reproducible test case, that would be grea. You can use Docker if it can't all be done in Java.
Gary On Tue, Apr 23, 2024, 5:57 AM Marcin Kudla <marcin.ku...@gmail.com> wrote: > Hi > > I used Apache Commons Net for long time without problems, but recently I > get error from one of us server when we try to upload files over ftps. > > Error: 451-Error during read from data connection > 451-Transfer aborted > 451 0.233 seconds (measured here), 68.53 Kbytes per second > > This error occurs always on specific files, other files upload without > problems. > > Here is some example of my code: > > FTPSClient client = new FTPSClient(); > client.setAuthValue("TLS"); > client.setControlEncoding("UTF-8"); > client.connect("host", "port"); > client.login("user", "passw"); > client.setKeepAlive(true); > client.enterLocalPassiveMode(); > client.execPBSZ(0); > client.execPROT("P"); > client.setFileType(FTP.BINARY_FILE_TYPE); > > client.storeFile(remotePath, inputStream) > > Server is Pure-FTPd, I tried set some buffers values for client but nothing > help. > > Do you have any suggestions as to what could be the problem? > > Regards, > > Marcin Kudla >