var FTPS = require('ftps');
var ftpClient = new FTPS({
host: 'localhost',
username: 'test',
password: 'test',
protocol: 'ftp',
requireSSHKey: false,
timeout:10,
retries:5,
additionalLftpCommands: [
'set ftp:ssl-allow false',
'set ssl:verify-certificate no',
'set ftp:ssl-force false',
'set passive-mode yes'
].join(';')
});
ftpClient.put(localPath, remotePath).exec((er,res)=>{});
...............................
Hi, Above is my code its working properly but the issue is its making too many connections and having too many connections in TIME_WAIT state
var FTPS = require('ftps'); var ftpClient = new FTPS({ host: 'localhost', username: 'test', password: 'test', protocol: 'ftp', requireSSHKey: false, timeout:10, retries:5, additionalLftpCommands: [ 'set ftp:ssl-allow false', 'set ssl:verify-certificate no', 'set ftp:ssl-force false', 'set passive-mode yes' ].join(';') }); ftpClient.put(localPath, remotePath).exec((er,res)=>{}); ............................... Hi, Above is my code its working properly but the issue is its making too many connections and having too many connections in TIME_WAIT state