Connection loop
Hello, I've been using this package for a while, but I stopped for some time, though now that I want to set it up again I am having trouble connecting. When ever I try to connect to my main server(godaddy) the connection gets in a loop of connecting and disconnecting and I don't know what is the problem, I know it is getting connected as the info is all correct and I can see the connection established on the active connections on the panel, but it doesn't show the files and it keeps disconnecting. I tried with another server and worked, but I used this package with godaddy before and never had any problem, also I can easily connect using filezilla so I don't know what is the problem.
My config: `{
"protocol": "ftp",
"host": "tri(sensor)ft.com",
"port": 21,
"user": "li(sensor)nd",
"pass": "(sensor)",
"promptForPass": false,
"remote": "/",
"local": "",
"secure": false,
"secureOptions": null,
"connTimeout": 10000,
"pasvTimeout": 10000,
"keepalive": 10000,
"watch": [],
"watchTimeout": 500
}`
Cheers.

I'm having this issue on multiple Windows devices as well.
https://github.com/icetee/remote-ftp/issues/585
Setting keepalive in .ftpconfig to zero fixed the issue for me.
"keepalive": 0,
Tried that but still does the same.
Try change domain name, use IP address. Maybe redirection?
I tried with the IP too but nothing, think it's godaddy's problem?
I think ~~cPanel~~ problem. I'm trying to debug with it this week.
Last year I used it and worked fine, I could try contacting their support and see what they say.
Changing remote-ftp package file is fixed my problem. I saw that solution before at somewhere but I could not remember now to reference it.
At Atom packages folder: Remote-FTP/node-modules/ftp/lib/connection.js:106
socket.setKeepAlive(true) should be socket.setKeepAlive(false)
Just change to false and problem should be fixed
Since 0.10.5 supported keepalive option in .ftpconfig. Simply set to 0. This is the hotfix for the moment.
There is an automatic reconnection it is infinite.
Solution in .ftpconfig:
"keepalive": 0,
https://github.com/icetee/remote-ftp/blob/6615f115f8e0944344525d2f99e0a632630c6d30/lib/connectors/ftp.js#L48
Can anyone have access (in email) to Windows as soon as the error occurs?
Hello, I'm having this connection loop aswell, I've tried modifying both the connection.js and the ftp.js as many other threads have suggested but to no avail. Also setting the KeepAlive to 0 in the .ftpconfig doesn't work either
Updated my remote-ftp to 1.1.3 version and I can no longer connect to GoDaddy through FTP sums it up pretty well.
Any updates on this bug?
@DanMoCa Can you try the master branch?
@icetee I installed through Atom on friday, 2 days after the last change on master branch, shouldn't that make my build be at master branch with the latest changes? If not, would you please illustrate me (possibly step by step) in what you want me to test please? Appreciate the help! love this plugin!
Unfortunately I ran into this today. But I can not induce it. My FTP server type ProFTPd.
It's sure 421's timeout and then maybe unsuccessful connection.
self.ftp._socket.setKeepAlive(self.info.keepalive > 0);
to
setKeepAlive(false);
and fixed