Sometimes my connection hangs while getting a file and I'd like to timeout by calling destroy to trigger a close event. When I do this, close is not called right away and sometimes not at all.
`var ftp = require('ftp');
var fs = require('fs');
var connect = function(server, user, pwd) {
var client = new ftp();
Sometimes my connection hangs while getting a file and I'd like to timeout by calling destroy to trigger a close event. When I do this, close is not called right away and sometimes not at all.
`var ftp = require('ftp'); var fs = require('fs');
var connect = function(server, user, pwd) { var client = new ftp();
};
connect(process.env.FTP_SERVER_1, process.env.FTP_USER_1, process.env.FTP_PWD_1);`