Bug 376301 - sftp.so not closing connections when ProxyCommand is configured
Summary: sftp.so not closing connections when ProxyCommand is configured
Status: RESOLVED WORKSFORME
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: SFTP (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Plasma Development Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-10 17:12 UTC by Andreas Bontozoglou
Modified: 2020-04-03 04:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Bontozoglou 2017-02-10 17:12:05 UTC
It seems that sftp.so + dolphin is not closing _any_ connections when ProxyCommand is configured in ~/.ssh/config. This made many people angry when they realized I have 800+ sessions on a jumphost making it not responsive (a lot)

My config:


Host *
    ServerAliveInterval 60

Host *__
    ProxyCommand ssh %r@jump.host.com -q -W $(echo %h | sed 's/__//g'):%p


Steps to reproduce:

1. Use the above config (any host ending with "__" goes through jumphost)
2. sftp://user@host__ to use the jumphost
3. Close and reopen dolphin and reconnect to the host
4. Do a `ps aux | grep ssh` to see connection

I have also used netstat to track connections and every time we reconnect more connections are added to the list... (ESTABLISHED state, no connections in TIME_WAIT)

System info:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

$ uname -a
Linux urban-kde 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

$ dpkg -l | grep kio
ii  kde-cli-tools-data                              4:5.5.5-0ubuntu1.1                         all          tools to use kioslaves from the command line
ii  kde-zeroconf                                    4:15.12.3-0ubuntu1                         amd64        zeroconf plugins and kio slaves for KDE
ii  kdemultimedia-kio-plugins                       4:15.12.3-0ubuntu1                         all          transitional package for kio-audiocd
ii  kdepimlibs-kio-plugins                          4:15.12.3-0ubuntu1                         amd64        kio slaves used by KDE PIM applications
ii  kio                                             5.18.0-0ubuntu1                            amd64        Resource and network access abstraction.
ii  kio-audiocd                                     4:15.12.3-0ubuntu1                         amd64        transparent audio CD access for applications using the KDE Platform
ii  kio-extras                                      4:15.12.3-0ubuntu1                         amd64        Extra functionality for kioslaves.
ii  kio-extras-data                                 4:15.12.3-0ubuntu1                         all          Extra functionality for kioslaves data files.
ii  kio-mtp                                         0.75+git20140304-2                         amd64        access to MTP devices for applications using the KDE Platform
ii  libkf5kiocore5:amd64                            5.18.0-0ubuntu1                            amd64        Resource and network access abstraction.
ii  libkf5kiofilewidgets5:amd64                     5.18.0-0ubuntu1                            amd64        Resource and network access abstraction.
ii  libkf5kiontlm5:amd64                            5.18.0-0ubuntu1                            amd64        Resource and network access abstraction.
ii  libkf5kiowidgets5:amd64                         5.18.0-0ubuntu1                            amd64        Resource and network access abstraction.
ii  libkio5                                         4:4.14.16-0ubuntu3                         amd64        Network-enabled File Management Library for the KDE Platform
ii  qml-module-org-kde-kio:amd64                    5.18.0-0ubuntu1                            amd64        provides integration of QML and KDE Frameworks - kio
Comment 1 Andreas Bontozoglou 2017-02-10 18:10:28 UTC
Reducing severity: Using fish:// instead of sftp:// closes the connections as expected!
Comment 2 Harald Sitter 2020-03-04 17:07:25 UTC
Is this still reproducible with the 19.12 release? What version of libssh is used?
Comment 3 Bug Janitor Service 2020-03-19 04:33:14 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2020-04-03 04:33:14 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!