Haxe wrote:
> There is still one litte drawback, though. As I said in my last mail, I 
> have manually added my "completed" folder to the list of shared 
> folders. So after I clear a downloaded file from the download list, it 
> should change from post-download seeding into full sharing mode
> (i.e. including keyword advertising).
 
> This is still a bit edgy, because I have to manually rescan my shared 
> folders to make this happen. Unfortunately, this also includes 
> re-calculating the file's SHA-1, which we already knew before.
 
> So would it be possible to internally copy the file's information to the 
> right place when clearing a download, given that the "completed" folder 
> happens to be shared and the filename extension matches the share 
> filter?

No, not easily. As you can see in src/core/share.c, share_scan() does a lot of
things and most data structures used are not very flexible i.e., you cannot
insert an item efficiently. It's not impossible of course but not as trivial as
the previous change. share_scan() needs cleaning before anyway because it is an
ugly hack as it's not implemented as background task.

Well, we could add the file information to the SHA-1 cache, that would at least
speed up the rescan phase.

Keeping a finished download uploading was very simple in contrast because it's
almost the same as a suspended download.

-- 
Christian

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to