Menu

#1230 FTP: Hypersearch w/ network VFS leaks SFTP connections

closed-fixed
None
8
2013-01-21
2009-10-07
Alexey G
No

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).

Discussion

  • Alexey G

    Alexey G - 2009-10-09

    Looks like this is actually a core bug because ftp._endVFSSession() method is not called after a remote hypersearch.

     
  • Alan Ezust

    Alan Ezust - 2009-10-09
    • assigned_to: nobody --> voituk
     
  • Jürgen Schmitz

    Jürgen Schmitz - 2010-04-20

    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.

     
  • Alan Ezust

    Alan Ezust - 2010-04-20

    moving to jedit-bugs, changing the subject.

     
  • Alan Ezust

    Alan Ezust - 2010-04-20
    • summary: FTP plugin leaks SFTP connections --> Hypersearch w/ remote VFS leaks SFTP connections
     
  • Alan Ezust

    Alan Ezust - 2010-04-20
    • labels: --> 102674
     
  • Alan Ezust

    Alan Ezust - 2011-12-03
    • summary: Hypersearch w/ remote VFS leaks SFTP connections --> Hypersearch w/ network VFS leaks SFTP connections
     
  • Alan Ezust

    Alan Ezust - 2012-03-06
    • assigned_to: voituk --> nobody
     
  • Alan Ezust

    Alan Ezust - 2013-01-20
    • priority: 5 --> 8
     
  • Alan Ezust

    Alan Ezust - 2013-01-20

    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.

     
  • Alan Ezust

    Alan Ezust - 2013-01-20
    • summary: Hypersearch w/ network VFS leaks SFTP connections --> FTP: Hypersearch w/ network VFS leaks SFTP connections
    • labels: 102674 -->
     
  • Alan Ezust

    Alan Ezust - 2013-01-20

    pre-release of FTP 1.0.3 with fix?

     
  • Alan Ezust

    Alan Ezust - 2013-01-20
    • status: open --> pending-fixed
     
  • Alan Ezust

    Alan Ezust - 2013-01-20
    • assigned_to: nobody --> ezust
     
  • Soronlin

    Soronlin - 2013-01-20

    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)

     
  • Alan Ezust

    Alan Ezust - 2013-01-21
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.