Bug 460141 - Dolphin using fish/sftp opens too many connections (I think)
Summary: Dolphin using fish/sftp opens too many connections (I think)
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-09 03:22 UTC by brenbarn
Modified: 2022-10-09 03:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brenbarn 2022-10-09 03:22:37 UTC
SUMMARY
I'm trying to use Dolphin to browse a remote system via the fish protocol (or sftp).  I can usually browse for a short time, then it will get stuck "loading".  Dolphin itself remains responsive but it seems to lose the connection and doesn't show the directory listing.  In addition, this seems to have a wider impact on the server itself, so that for instance I can no longer ssh in to that server as the same user I was using to browse with Dolphin.

I don't have root access on that server, but by looking at connection info and following up on suggestions from others, I have noticed that Dolphin seems to open many simultaneous ssh connections to the remote system, even just for a single directory listing.  The server apparently has some kind of limit on simultaneous logins or number of logins within a specified time, and when the limit is reached, it locks that account out for some time (maybe until the existing connections timeout and are dropped).

STEPS TO REPRODUCE
1. Find some server that doesn't like having the same user log in multiple times in quick succession.
2. Visit fish://that.server.com in Dolphin to log in to that server and browse around.  (Or try sftp://)
3. Watch as your Dolphin session becomes stuck, unable to load directory listings.

OBSERVED RESULT
Dolphin gets stuck "loading" and eventually times out and locks your user out.

EXPECTED RESULT
Dolphin should be able to browse remote servers without problems.  It shouldn't need to open multiple connections.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
I'm not sure whether this bug is really with the fish/sftp kioslaves, or with the way Dolphin is using them.  I'm reporting it here because I notice the behavior in Dolphin.

I don't really get why Dolphin feels the need to open multiple connections by the same user to the same host.  It should do like "regular" FTP programs like FileZilla do, and just open one connection and keep that connection alive as long as that remote server is open in Dolphin.