Bug 243206

Summary: kio_ftp does not comply with "maxInstances" set in /usr/share/kde4/services/ftp.protocol
Product: [Unmaintained] kio Reporter: Danny Bruce <dan>
Component: ftpAssignee: David Faure <faure>
Status: RESOLVED WORKSFORME    
Severity: normal CC: adawit, serhiy.int, steve, viesturs.zarins
Priority: NOR    
Version: 4.4   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Danny Bruce 2010-06-29 23:31:37 UTC
Version:           4.4 (using KDE 4.4.4) 
OS:                Linux

Each applikation launches a new kio_ftp process and will surpass the limit set as maxInstances.  Also surpasses the variable maxInstancesPerHost.  Servers which limit the number of open sessions are inaccessible once the session limit is hit, even when maxInstances is set less than this limit.

Reproducible: Always

Steps to Reproduce:
1. Open a connection to an ftp site containing text files in dolphin.
2. Open "x" text files in kwrite where "x" is larger than maxInstances variable.
3. The number of kio_ftp processes exceeds maxInstances.

Actual Results:  
The number of kio_ftp processes exceeded maxInstances.  Even to a single host, the number of kio_ftp processes exceeded maxInstancesPerHost.

Expected Results:  
Once maxInstances or maxInstancesPerHost is hit, further applikations should share/reuse already opened sessions instead of opening new ones.

This bug makes it difficult to remotely edit files with kwrite.  I have not tested with kate but I suspect it makes no difference.  Is there a technical reason why multiple kde programs cannot share a session to the same ftp target (user, host, etc)?
Comment 1 Dawit Alemayehu 2011-03-15 19:45:51 UTC
This is not a kio_ftp issue since how many global and per host instances are created is the responsiblity of the scheduler (KIO::Scheduler that is). Anyhow, the afformentioned scheduler has been replaced with a new and more efficient one that properly honors those settings starting with KDE v4.5 ; so the question I have to you is, do you still see this problem in KDE v4.5 and up ?
Comment 2 Dawit Alemayehu 2011-03-17 15:50:36 UTC
As stated in comment #3 this issue has already been addressed in v4.5 and my own tests shows that to be the case. Feel free to reopen this ticket, if you this problem still persists for you in KDE v4.5 and higher.
Comment 3 Dawit Alemayehu 2011-03-17 15:57:38 UTC
*** Bug 233526 has been marked as a duplicate of this bug. ***
Comment 4 Dawit Alemayehu 2011-03-17 16:03:18 UTC
*** Bug 201338 has been marked as a duplicate of this bug. ***