Bug 264557 - multiple smb:// fish:// sftp:// requests to same server are blocked by ongoing file transfer
Summary: multiple smb:// fish:// sftp:// requests to same server are blocked by ongoin...
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: kioslave (show other bugs)
Version: 4.6
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 286404 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-28 00:59 UTC by ashelley
Modified: 2017-12-12 22:46 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ashelley 2011-01-28 00:59:26 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

if you try to copy a file using a network protocol smb:// fish:// sftp:// then make another connection to the server using that same protocol it gets blocked.  

Reproducible: Always

Steps to Reproduce:
1) open dolphin
2) connect to server using fish://servername/path (or smb:// or sftp://)
3) start file copy using decent size file from local system using copy/paste
4) open new window or tab of dolphin and browse to same location... but different path.


Actual Results:  
will say "loading folder"... will not load folder until current file it's working on is fully transferred.

Expected Results:  
should load folders immediately.  should be able to browse remote file system while copying to it.

another noticeable side effect of bug: right click tab where u hit ctrl+v (paste) select "open new tab".  it will try to open a new tab but can't look up share names.  same as "loading folder..." problem as above presumably.

similar effect if trying to use konqueror as file manager.  not fully tested but seems to be the same problem.
Comment 1 ashelley 2011-01-28 01:01:10 UTC
found a related bug.  same problem as mine:

https://bugs.kde.org/show_bug.cgi?id=250882

Same problem for smb:// to samba server as well.  The above bug is not related to windows specific file server
Comment 2 ashelley 2011-01-28 01:06:31 UTC
p.s. I noticed this through entire 4.X series.  just recently filed bug to raise awareness of the issue.
Comment 3 Kai Uwe Broulik 2011-01-28 08:27:15 UTC
Didn't try with fish or sftp but definitly reproducable using smb.
Comment 4 Max Devaine 2011-03-03 13:26:57 UTC
I have same problem.

Copy from "smb://" to  another or same server "smb://" hang in the systray.
Copy from "fish://" to another or same server "fish://" hang in the systray.
Copy from "fish://" to  another or same server "smb://" is ok.
Copying between two same protocol does not work.
Copying between different protocol work correctly.

I tested this issue in krusader and dolphin.

I have Archlinux x86_64 AND KDE4.6
Comment 5 Andrew 2011-04-20 06:03:29 UTC
I can confirm this on 4.6.2 Kubuntu Natty
Comment 6 Vlastimil Babka (Caster) 2011-04-29 09:29:19 UTC
Same here at least for sftp.
Comment 7 Dawit Alemayehu 2011-11-04 05:52:18 UTC
Well this is not really a bug, but a restriction in the protocol definition file. Both fish and ftp has a limit of 2 connections per host and a maximum of 10 instances running at one given time.

To change the maximum limit, find fish.protocol and ftp.protocol and change the value for the "maxInstancesPerHost" entry to something higher than 2. Make sure the value you enter is less than that of the "maxInstances" property.
Comment 8 Dawit Alemayehu 2011-11-04 05:53:48 UTC
For the smb protocol, see bug# 250882.
Comment 9 Dawit Alemayehu 2011-11-04 06:04:04 UTC
BTW, these values were set so low for the ftp ioslave because of bug reports about some ftp servers restricting connections to 1 or 2 from a given host. Those settings were then simply copied over to the sftp ioslave.
Comment 10 ashelley 2011-11-04 18:09:40 UTC
wow thanks!.... long time comin'.  dunno why we never had an issue this in kde 3.5.  kde4 is almost ready for the desktop!
Comment 11 Dawit Alemayehu 2011-11-04 19:24:56 UTC
(In reply to comment #10)
> wow thanks!.... long time comin'.  dunno why we never had an issue this in kde
> 3.5.  kde4 is almost ready for the desktop!

Though those properties existed for a long time (KDE 3 era), well actually only "maxInstances" did, they were not properly honored prior to KIO::Scheduler's rewrite for KDE 4.5. That is why you had no issues prior to KDE 4.5, not just in KDE 3. :)

BTW, the "maxInstancesPerHost" only applies to remote protocols that contain host information and is completely useless for those that do not, e.g. file, man, info etc. "maxInstances" however applies to all protocols and if it is missing the scheduler will automatically assume it can only create one ioslave for that particular protocol.
Comment 12 pier andre 2011-11-06 09:36:52 UTC
where can I found "maxInstancesPerHost"??
in smb protocol is a very annoyng bug this.
Comment 13 Dawit Alemayehu 2011-11-06 13:45:52 UTC
(In reply to comment #12)
> where can I found "maxInstancesPerHost"??
> in smb protocol is a very annoyng bug this.

Look for the specific protocol file on your system, e.g. "locate smb.protocol", and either add those two properties if it is missing, which is the case for smb, or simply modify them with whatever value you want.
Comment 14 Dawit Alemayehu 2011-12-07 02:57:27 UTC
Can anyone here verify that changing or adding the two properties, "maxInstances" and "maxInstancesPerHost", in the .protocol files fixes this particular issue ? If so, I will go ahead and increase the default values for fish and sftp. It has already been done for smb.
Comment 15 Dawit Alemayehu 2011-12-12 21:18:50 UTC
Git commit c179c1273aabe7a0499fa6d90151ec2eb27fac0a by Dawit Alemayehu.
Committed on 12/12/2011 at 16:39.
Pushed by adawit into branch 'master'.

Changed maxInstances property to 20 and maxInstancesPerHost to 5.

BUG: 264557

M  +2    -2    kioslave/fish/fish.protocol
M  +2    -2    kioslave/sftp/sftp.protocol

http://commits.kde.org/kde-runtime/c179c1273aabe7a0499fa6d90151ec2eb27fac0a
Comment 16 pier andre 2012-02-15 13:05:47 UTC
with opensuse 12.1 kde 4.8 dolphin, it works better, about 30 seconds to see the folder contents when copying big files from another smb:// folder, it seems accettable now, good work :-))
Comment 17 Nate Graham 2017-12-12 22:46:46 UTC
*** Bug 286404 has been marked as a duplicate of this bug. ***