newinnovations / remote-edit-ni

Atom package to browse and edit remote files using SSH and FTP. This fork supports atom 1.41.x and adds some new features.
https://atom.io/packages/remote-edit-ni
MIT License
18 stars 2 forks source link

[fix] Improve reliability attempt 1 :) #24

Closed urban-1 closed 6 years ago

urban-1 commented 6 years ago

Hi,

I looked a bit on how errors are being handled and found out few things:

This has been partly tested with a local connection and lock filesystem permissions (to trigger errors). It should be contributing towards a more stable plugin, issue (#17) but I think we should leave the issue open.

Let me know what you think about this PR and if you see space for quick improvements

newinnovations commented 6 years ago

Hi Andreas,

I've been testing your PR the last week. I have a server that is behaving strangely. There seems to be a timeout of sorts. Saving (and reconnecting) silently fails even with this PR. The only way to recover is to restart atom. I have not have the time to investigate, but would like to do that before committing this PR.

newinnovations commented 6 years ago

The problem I was experiencing was related to timeouts in firewalls / nat. I will add a keepalive to the ssh2 connect. The ftp module seems to have a keepalive by default.