Fork me on GitHub
#java
<
2023-10-10
>
marciol18:10:31

Hey, don't know if someone have got this, but as I'm using the .ftp.FTPSClient I'm getting a random set of errors Remote host terminated the handshake and Socket is closed for a different combination of user/password/directory in the same server, with multiple instances in multiple threads connecting to the server concurrently, but it's not heavy concurrent, I'm just spinning 20 threads, one for each combination. I'd like to know if anyone have seen this sort of error before. I'm using a retrying approach but I'm still getting failures.

Nundrum18:10:04

Sounds like a job for Wireshark.

marciol18:10:26

In order to avoid it (don't have much time for dig deep on the issue), I'm thinking into another ways to just put it in a s3 and getting another path to get it from s3 to sftp

Linus Ericsson17:10:00

Maybe the server has some kind of DDOS-protection that don't allow you connect too many sockets from one IP or something.

marciol15:10:45

I’m betting on it so my strategy now is to put everything in S3 and make a cron job to grab all files and upload them when needed. Bank stuff, not cool as usual 😅