Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Integration DefaultFtpSessionFactory timeout parameters details

I am configuring a ftpClientFactory using org.springframework.integration.ftp.session.DefaultFtpSessionFactory.

I noticed it has 3 timeout related parameters. connectTimeout, defaultTimeout and dataTimeout.

I was reading the documentation but I could not find the exactly details about those properties. I am guessing that the dataTimeout is a timeout for sending the file. connectTimeout is for establishing a connection with the FTP server. And the defaultTimeout is for both???

I could not find a place to check if my understanding is correct. Does anyone knows where to find it or can anyone confirm it to me based on experience?

like image 201
Ricardo Machado Avatar asked Oct 28 '25 12:10

Ricardo Machado


1 Answers

connectTimeout ends in timeout argument of Socket.connect of both control and data connection.

defaultTimeout ends in Socket.setSoTimeout of the control connection.

dataTimeout ends in Socket.setSoTimeout of the data connection.

like image 76
Martin Prikryl Avatar answered Oct 30 '25 03:10

Martin Prikryl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!