Version: 3.1.4 (using KDE 3.1.3) Installed from: Mandrake Linux Cooker i586 - Cooker Compiler: gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk) OS: Linux (i686) release 2.4.22-4mdk when I connect to an FTP site with login/password, Konqueror opens more than one connection in order to get thumbnails, etc. We should be able to change the max number of connections he can open : on my isp (free.fr), I can't open more than two ftp connections at the same time. This gives me errors when uploading something while konqueror is still querying remote directories! thanks
I got a similar problem, with KDE 3.2 from Gentoo packages. But this time, when I browse the FTP site of my company, kio_ftp seems to open multiple connections and then BAM, I cannot connect to ANYTHING in my company's domain, including HTTP, POP3, FTP and SMTP. The firewall of our hosting company blocks clients which open more than 3 connections. So I have to contact them and ask them to remove my IP from their 'black' IP list. This should be resolved IMHO.
This is still a problem as of KDE 3.5.5
This will be the oldest bug of KDE ;-) As far as I've understood, it maybe a kio slave problem : kioslave opens several connections, and this is no more configurable (it was before). Or a konqueror problem : konqueror launches several ioslaves.
*** Bug 134732 has been marked as a duplicate of this bug. ***
*** Bug 117264 has been marked as a duplicate of this bug. ***
See also bug #27780 for the issue generally to all ioslaves.
*** This bug has been confirmed by popular vote. ***
Created attachment 31233 [details] Limit number of slaves per protocol and number of connections per server
Created attachment 31234 [details] Limit number of slaves per protocol and number of connections per server
Ahem... my patch actually only works if applications call scheduleJob() voluntarily. It has more impact if Scheduler::doJob() simply calls scheduleJob().
after the things scheduleJob() usually does, that is. then it *actually* works.
I mean after the things doJob() usually does, of course. And I've been using it to fix session loading in Kate which failed before when trying to load 20+ files via sftp.
*** Bug 176054 has been marked as a duplicate of this bug. ***
I have the same problem while connecting to a corporate ftp (with login/passwd). I can't use konqueror because i keep getting errors "530 Sorry, there are too many connections from this host" even though i'm only using konqueror and one tab. I can only go to the first page, and not further. This is using kde/konqueror from 4.4rc1 Also I think #28361 is a (very old) duplicate.
I think mot of those are duplicate: https://bugs.kde.org/buglist.cgi?quicksearch=ftp+connections
Created attachment 40580 [details] Update the patch to version 4.3.4 Ported the patch from Andreas Hartmetz to version 4.3.4. Seems to work fine. Is there any possibility something like this will be implemented? A nice addition would be to provide a config file where the maximum number of connections is configurable by protocol.
Alex Hermann: The number of connections is still not *configurable* but it's a small fixed number now. This should help. The fix now in trunk is, at least technically, much better than the patch you've been using.
*** Bug 187992 has been marked as a duplicate of this bug. ***
I don't know how many is the small fixed number, but 1 is the only way to get sure everybody can use kio ftp. This what every FTP client does.
Still got this issue in KDE 4.4.4. Dolphin displays the error message "421 Too many connections (8) from this IP". I'm the only person accessing the server from this IP (but both browsed and opened a file with Kate). netstat confirmed that eight or so connections are open to port 21 on that server: $ netstat -antp | grep :21 tcp 0 0 10.67.0.30:58608 80.239.150.40:21 ESTABLISHED 2587/kwriteEa2586.s tcp 0 0 10.67.0.30:48589 80.239.150.40:21 TIME_WAIT - tcp 0 0 10.67.0.30:46211 80.239.150.40:21 ESTABLISHED 2574/dolphinDS2078. tcp 0 0 10.67.0.30:48578 80.239.150.40:21 ESTABLISHED 2645/dolphinhO2078. tcp 0 0 10.67.0.30:48585 80.239.150.40:21 TIME_WAIT - tcp 0 0 10.67.0.30:46208 80.239.150.40:21 ESTABLISHED 2572/dolphinNa2078. tcp 0 0 10.67.0.30:46212 80.239.150.40:21 ESTABLISHED 2575/dolphinBu2078. tcp 0 0 10.67.0.30:46209 80.239.150.40:21 ESTABLISHED 2573/dolphinnX2078. tcp 0 0 10.67.0.30:48587 80.239.150.40:21 TIME_WAIT - tcp 0 0 10.67.0.30:46210 80.239.150.40:21 ESTABLISHED 2570/dolphinke2078. tcp 0 0 10.67.0.30:48588 80.239.150.40:21 ESTABLISHED 2647/dolphinhx2078. tcp 0 0 10.67.0.30:48584 80.239.150.40:21 TIME_WAIT - Bug 28361 talks about some kind of KIO scheduler, can't that one use a single control connection to the FTP if the tuple (IP, Port, User) are the same? Might slow down one process if another does a long listing, but would be a lot more social. Especially in NAT networks where multiple persons might be trying to connect to that server and one single KDE instance is eating up all the available connections.
I'm running KDE 4.4.5 here. And it's not fixed. I agree with #20 that a single connection to any (ip,user,port) should be enough. There is most likely only one network connection anyway.
*** Bug 234983 has been marked as a duplicate of this bug. ***
This should be adjustable via the file "ftp.protocol" (mine is in /usr/share/kde4/services). It has a line "maxInstancesPerHost=2". Obviusly, setting this to 1 should fix the problem. I am not at home and cannot confirm that it really works. Can someone test this please?
I copied the ftp.procotol file in ~/.kde4/share/services, and modified maxInstancesPerHost to 1, but it changed nothing. I cannot browse correctly ftp://ftp.free.fr without constantly but randomly having the error message "too many connections from your internet address".
Although I doubt it makes any difference, can you try and modify the original file (not in your home dir)?
I tried by directly modifying /usr/share/kde4/services/ftp.protocol as root and by killing all kio_ftp processes without browsing ftp://ftp.free.fr, but nothing changed again.
Oops. Read "before" instead of "without".
I have absolutely no problems browsing ftp.free.fr and downloading files. Can you restart KDE and try again? And maybe tell me exactly how you produce the error message (just browsing, multiple downloads...)?
I think that gambas in #26 refer to the same situation as the original submitter: browsing his own personal account on free.fr (with login/password). In this case you cannot upload (see bug description). As for gambas, setting maxInstancesPerHost=1 doesn't have any effect for me.
KDE 4.5 rc2 at least keeps itself below 4 connection, which is the limit I have been hitting.
As of KDE 4.5.1 there will be at most 2 connections to ftp servers. Moreover, starting with KDE 4.7 the connection to ftp server will be reused more efficiently due to several long standing bugs being fixed. See https://git.reviewboard.kde.org/r/101244/ https://git.reviewboard.kde.org/r/101333/ The ability to configure these maximum number of connections to a given site has been around for a long time. Two entries in the ftp.protocol file, 'maxInstancesPerHost=' and 'maxInstances=', can be modified to limit number of ftp ioslaves that can be instantiated per host and the total number of ftp ioslaves that can be running at one given time respectively.
I am pretty sure that this bug is about a GUI to configure the number of connections. Protocol files are not supposed to be edited by users - on normal systems they are owned by root. If this wasn't about GUI I'd have closed the bug after committing the new KIO scheduler. I really doubt that slave-on-hold played a major role here one way or another.
(In reply to comment #32) > I am pretty sure that this bug is about a GUI to configure the number of > connections. Protocol files are not supposed to be edited by users - on normal > systems they are owned by root. Ahh... I did not see anything related to a GUI configuration, but I now see patches for setting max ioslave instances per host and per session from you. I did not notice that before. My mistake... > If this wasn't about GUI I'd have closed the bug after committing the new KIO > scheduler. I really doubt that slave-on-hold played a major role here one way > or another. Not entirely correct. The fact that slave-on-hold feature did not even work for kio_ftp plays a role in the fact that too many connections are made to the server resulting in the user hitting the limit set by the server. Anyhow, that is not the point here. If it is a GUI config related issue, then I should not have closed it.
Git commit 7a5ecbd5316b880f86a2088f420057cdb8d4e2ba by Dawit Alemayehu. Committed on 16/12/2011 at 20:34. Pushed by adawit into branch 'KDE/4.8'. Made the maximum number of connections allowed per host user configurable. FIXED-IN:4.8.1 REVIEW:104120 M +22 -10 kio/kio/scheduler.cpp http://commits.kde.org/kdelibs/7a5ecbd5316b880f86a2088f420057cdb8d4e2ba
i think an explanation from https://git.reviewboard.kde.org/r/104120/ on how to use your fix should go to official dolphin documentation
and also dolphin should suggest to add the limit for the specific host when he detects 'too many connections' problem
*** Bug 244164 has been marked as a duplicate of this bug. ***
this should be a gui option. It can't be, that a user has to google, and has to find this bug report and reviewboard entry to limit the connection count. perhaps in systemsettings under "connections"?
Indeed, a GUI option would be nice.
is this really supposed to be fixed? I've encountered this bug for about 10 years, no matter what. Of course, Filezilla does the job, but it's really inconvenient when it comes to editing remote files... I'm currently using KDE 4.14.2 on Linux Mint 17.2. I'd appreciate any guidance to limit kio_ftp slave connection number. Thanks.