Bug 200911 - Kio_ftp. In some servers "a Reason: 421 Too many connections" error appears.
Summary: Kio_ftp. In some servers "a Reason: 421 Too many connections" error appears.
Status: RESOLVED DUPLICATE of bug 28361
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: SVN
Platform: Compiled Sources Unspecified
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-20 19:30 UTC by Alex Fiestas
Modified: 2010-02-23 01:57 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Fiestas 2009-07-20 19:30:30 UTC
Version:            (using Devel)
Installed from:    Compiled sources

Kio_ftp seems to be "aggressive?" making connections, and some servers (accounts) have limitations. Once you reach the limit, kio_ftp doesn't handle it correctly (close some connections?), and you've to kill some kio_ftp manually.

kio_ftp should be a bit more conservative, or at least, the user should be able to configure it.
Comment 1 Musikolo 2009-08-12 22:04:34 UTC
Hi,

I'm also experiencing the same problem. I have local FTP server and when I connect to it using dolphin lots of kio_ftp processes are started which flood my server with lots of connection, apparently, one for each action carried out. I think this should be checked in depth and a less aggressive and more resource-friendly approach should be implemented.

I hope you fix this soon. In the meanwhile I have decided not to use dolphin for this purpose.

Best regards! :-)
Comment 2 Reinhard Berger 2009-09-04 20:36:20 UTC
Since KDE4.3 kioftp slave opens evry time a new connection to the server for each section you brwose.

E.g. if you have a section called incomming, and one section called outgoing , the slave will collect information with a new connection in "outgoing" and once connection in "incomming".

This come then to a problem that the user login limit is reached, and you end up in a endless loop of cancel or re-connect since the server refuses to open a new connection.

Current open connections will not be closed, until dolphin is closed too.

In older times (KDE 3 / 4.x) The slave only used 2 connections, and not multiple connection of 4 or 6 or more.
Comment 3 FiNeX 2009-09-18 00:47:01 UTC
Isn't this a dup of bug #95063 ?
Comment 4 Musikolo 2009-09-18 09:36:02 UTC
Hi FiNeX,

well, I think it's not exactly the same issue:

1.- The problem described in this thread occur in dolphin not in konqueror.
2.- The main difference between the bug you suggested and the one described here is that here what we experience is that each action triggers a new kio_ftp process / ftp connection, what quickly stresses both the client and the server resources.

I don't know if they are somehow related to each other, but at least for the moment being, I don't see the point in common. Anyway, thanks a lot for your involvement. If you want to test it on your own, I suggest you to open dolphin and try to connect to some server using ftp for it. Then check the number of kio_ftp processes open and you should see there is one for each action done.

Best regards! :-)
Comment 5 FiNeX 2009-09-18 10:33:42 UTC
Just tested (with r1025030).
I've accessed an ftp server with dolphin and there are three "kdeinit4: kio_ftp" process running all on the same socket. Is it the wanted behaviour? I'm experiencig some hangs of dolphin while browsing ftp: when it reconnects after a timeout the interface is freezed until a new login is done (which never happened in the past). Could this be related?


On my previous comment I've asked if the bug #95063 is related to this because konqueror uses "kio" product too and both problem are about ftp connections which are not correctly manged.
Comment 6 Musikolo 2009-09-18 11:10:00 UTC
(In reply to comment #5)
> Just tested (with r1025030).
> I've accessed an ftp server with dolphin and there are three "kdeinit4:
> kio_ftp" process running all on the same socket. Is it the wanted behaviour?
> I'm experiencig some hangs of dolphin while browsing ftp: when it reconnects
> after a timeout the interface is freezed until a new login is done (which never
> happened in the past). Could this be related?
 
Since I have an FTP server I could check the number of connections opened on both sides and it was quite a bunch of them while having only a tab in dolphin. There should be some sort of problem where existent connections are not re-used. I think there should be a queue of actions that are attended through the same connection.

When browsing with dolphin you have the freeze feeling because each connection is ordering different commands to the server what saturate for short periods of time the server (at least my quit low performant one) as each of these commands opens up a new connection. 
 
> On my previous comment I've asked if the bug #95063 is related to this because
> konqueror uses "kio" product too and both problem are about ftp connections
> which are not correctly manged.

Well, this is true but I haven't found any sign that shows the same behaviour in konqueror though.
Comment 7 Jeremy Wilkins 2009-10-21 03:56:05 UTC
I can confirm this strange behaviour.  Although I didn't check if konqueror had the same effect.  I am using Kubuntu 9.04 with KDE 4.3.2 from Kubuntu KDE desktop testing ppa.  I also notice many kio_ftp processes sitting idle after actions are performed, but there is no action anymore.  The processes are completed, but still hanging around.  Once I terminate the idle processes or after a timeout period I can continue with more FTP actions.  These processes eventually do close after a long time.
Comment 8 Johan Erlands 2009-12-05 23:28:47 UTC
I have also experiensed this problem. Both konqueror and dolphin has the same behaviour.

I created a dump-log, it became very large in very short time...
Comment 9 Andreas Hartmetz 2010-02-23 01:57:04 UTC

*** This bug has been marked as a duplicate of bug 28361 ***