Bug 243206 - kio_ftp does not comply with "maxInstances" set in /usr/share/kde4/services/ftp.protocol
Summary: kio_ftp does not comply with "maxInstances" set in /usr/share/kde4/services/f...
Status: RESOLVED WORKSFORME
Alias: None
Product: kio
Classification: Unmaintained
Component: ftp (show other bugs)
Version: 4.4
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 201338 233526 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-29 23:31 UTC by Danny Bruce
Modified: 2012-04-11 13:02 UTC (History)
4 users (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 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. ***