atinux / node-ftps

FTP, FTPS and SFTP client for node.js, mainly a lftp wrapper.
MIT License
203 stars 57 forks source link

FTPS connection not closed properly getting TIME_WAIT #77

Open vinodKumarPula opened 5 years ago

vinodKumarPula commented 5 years ago

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 Screenshot from 2019-06-11 21-40-15