[Kget] Way to manage connections per server

Matthias Fuchs mat69 at gmx.net
Tue Apr 26 09:07:52 UTC 2011


Ok, sending again, this time as zip. Was too stupid to think about that in the 
first place.^^


This patch would make it possible for users to define how many connections a 
server supports. All TransferMultiSegKIO datasources would respect this 
setting.

There are some problems with this patch imo.
On the one hand everything gets more complicated and it does not work well 
with TransferMultiSegKIO Transfers because of the following line

+//FIXME The following lines make it work nicely for Metalink yet kinda break 
it for TransferMultiSegKIO
+//I have not clue why it is that way though.
+    if (!isReady()) {
+        m_startTried = true;
+        emit notReady();
+        return;
+    }

in datasourcefactory.cpp

If I remove these added lines it works nice for TransferMultiSegKIO but not 
for metalink ...

So please have a look at this patch, btw. keep in mind that there is debug 
output in the patch at some places.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.zip
Type: application/zip
Size: 14906 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kget/attachments/20110426/e42f10bb/attachment-0001.zip 


More information about the Kget mailing list