jEdit 4.3pre17, FTP plugin 0.9.5, SSH console 1.0.1
Open a remote file over SFTP (e.g. sftp://server:22/home/user/file.txt). Select "Search" -> "Search in directory", enter some text to search for, click "Synchronize", check "Hypersearch" and click "Find". Answer "Yes" in the warning message box. On the remote machine watch the process list. Every time a new search is performed a new sshd process is spawned and stays there until jEdit exits. Java heap also grows noticeably, so apparently the SFTP connections are not closed (or released to the pool).
Looks like this is actually a core bug because ftp._endVFSSession() method is not called after a remote hypersearch.
This is also true for saving files after waiting several minutes (eg. 30). Then a new SSH connections is created but the old sshd is still running. Seen on Debian SSH Server.
moving to jedit-bugs, changing the subject.
It seems to be a plugin bug, and as per the suggestion in
http://comments.gmane.org/gmane.editors.jedit.devel/40163
I am committing rev#22703 to FTP plugin which seems to fix the problem.
I will attach the .jar as an attachment to this ticket, let me know if it fixes the issue for you.
pre-release of FTP 1.0.3 with fix?
I can confirm that the attached jar fixes the problem. The remote sshd process dies 1 minute after the last activity, as it should, and the underlying TCP connection is closed.
Thanks for the quick fix, on a Sunday.
Richard Urwin (found my sourceforge login)