NppFTP icon indicating copy to clipboard operation
NppFTP copied to clipboard

Inactivity Results in Server Timeout / Failed Upload Upon Return

Open projecthate opened this issue 2 years ago • 6 comments

I'm not sure I can provide a use case. It seems to be specific to my environment, and I wouldn't want to post credentials for others to test. Hosting support has been no help.

I am connected to one server most of the day, if I have 15+ minutes without any traffic to it, when I trigger an upload, it invariably fails, after almost 2 minutes of attempting.

So, the question is:

  1. Is there a way to hasten this attempt interval? I have server timeout set to 5s, but I guess that's just for initial connection attempt?
  2. Is there a way to force the plugin to close the connection on an interval?

projecthate avatar Apr 03 '24 13:04 projecthate

@projecthate Which versions do you use of NppFTP, N++, Windows and which kind of connection? There are some open issue on this e.g. https://github.com/ashkulz/NppFTP/issues/290 or https://github.com/ashkulz/NppFTP/issues/1

In the profile settings for a connection you can set a timeout value.

chcg avatar Apr 04 '24 16:04 chcg

@chcg I just updated the plugin, without noting the former version number. Truthfully, I didn't realize N++ didn't auto-update plugins. Currently 0.29.13 - I'll post again with an update after seeing if it solved the issue.

N++ is v8.6.2

Windows 10

Passive/Binary connection. I believe I've tried the other 3 permutations and they either don't work for my server or the same issue persists.

Thanks for your assistance.

projecthate avatar Apr 04 '24 17:04 projecthate

@chcg It's still happening after NppFTP update

projecthate avatar Apr 05 '24 00:04 projecthate

Anyone who has an insight and inclined to share would be greatly appreciated

projecthate avatar Apr 20 '24 01:04 projecthate

Seems current NppFTP 0.29.13 could recover successfully from timeout in case of a plain FTP connection, but not for FTPS/FTPES. Unclear how SFTP behaves. It seems the spontaneous server response 421 for inactivity never reaches the client code or at least is not handled there. The response just appears at the start of the next FTP request.

chcg avatar May 03 '24 06:05 chcg

@chcg my connection is plain FTP and is still experiencing the issue

projecthate avatar May 04 '24 01:05 projecthate