Disconnect on save with NPPFTP
-
I’ve tried to find a solution with no success so here I am.
I’ve got a new fresh windows 11 setup with Notepad ++ installed using the nppftp plugin to upload to an azure web app allowing editing etc.
When hitting ctrl+s, just save or save all it automatically disconnects, doesn’t save the file to the web app and disconnects from the ftp.
Below is the NPPFTP output window results -
Download of /site/application/views/quicksign.php succeeded, opening file.
-> Quit
Disconnected
-> QuitThanks in advance
-
It sounds like your site would want a “keepalive” option in the client… My guess is that the server had already disconnected, but NppFTP didn’t see the disconnect until you told it to try to save. As far as I have seen, NppFTP does not have a “keepalive” option.
You might check through the existing NppFTP issues, and if there isn’t a “keepalive” request already there, you might want to add it. Oh, there it is – if you could share the whole NppFTP output session in that NppFTP discussion, it might give the plugin author an idea of how to prevent the timeout/closing.
As a workaround (since the keepalive issue has been around for years, it might be a while before there’s a fix), you might want to do the sequence: connect, download the file to start editing; when you are ready to save, do a “refresh” (which I assume would also force NppFTP to see if there’s a connection still active) and if it disconnects on refresh, then immediately connect and hit Save in the Notepad++ editor pane while the connection is still active.