hungdluit / flowlib

Automatically exported from code.google.com/p/flowlib
0 stars 0 forks source link

Download stops #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start 3 transfers to the same user

Original issue reported on code.google.com by christ...@koyuk.dk on 21 Jan 2008 at 9:36

GoogleCodeExporter commented 8 years ago
Need more feedback then this.
Please think about this:
1. Why do you want to start 3 connections? (this will take alot of slots. Not 
good
for DC Network)
2. Do you always get this for 3 connections? no matter of your/(his/her) 
connection mode?
3. Do it happens with 2 connections?
4. Do it happen with segments turned off/on?
5. Can you give me a RAW message log?

Original comment by blomman84 on 22 Jan 2008 at 8:31

GoogleCodeExporter commented 8 years ago
1) My add file code is as follows:

public void DownloadFile(Source source, ContentInfo info, string name)
        {
            string path = main.SettingsManager.GetSettingsManagerDownload.Folder + name;
            info.Set(ContentInfo.STORAGEPATH, path);

            DownloadItem dwItem = new DownloadItem(info);

            downloadManager.AddDownload(dwItem, source);

            // Start transfer to user
            HubForm hub = null;
            if (main.HubList.TryGetValue(source.ConnectionId, out hub))
            {
                User usr = hub.Hub.GetUserById(source.UserId);
                hub.UpdateBaseFire(new FmdcEventArgs(Actions.StartTransfer, usr));
            }
            else
            {
                // FIX ME
            }
        }

So every time you add a file a new transfer is added.

2) Yes

3) No

4) Haven't changed anything with segments so it must use default value whatever 
that is

Original comment by christ...@koyuk.dk on 25 Jan 2008 at 3:29

GoogleCodeExporter commented 8 years ago
I got permission to close this one as it is not reproducible in latest SVN :D 

Original comment by blomman84 on 11 Feb 2008 at 9:13