[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mldonkey-users] [patch #5061] New option small_files_slot_below to push
From: |
spiralvoice |
Subject: |
[Mldonkey-users] [patch #5061] New option small_files_slot_below to push release of small files |
Date: |
Wed, 7 Jun 2006 03:05:34 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.8.0.4) Gecko/20060605 Firefox/1.5.0.4 |
Follow-up Comment #5, patch #5061 (project mldonkey):
http://forum.emule-project.net/index.php?showtopic=93222&hl=#
>From what I can tell in the code, the only requirements to bypass the upload
queue and be given a collection upload slot are that the file must have an
"emulecollection" extension and be smaller than 10 KiB.
eMule 0.47a - opcodes.h
#define MAXPRIORITYCOLL_SIZE 10*1024 // max file size for
collection file which are allowed to bypass the queu
eMule 0.47a - UploadQueue.cpp
// emule collection will bypass the queue^
if (reqfile != NULL &&
CCollection::HasCollectionExtention(reqfile->GetFileName()) &&
reqfile->GetFileSize() < (uint64)MAXPRIORITYCOLL_SIZE^
&& !client->IsDownloading() && client->socket != NULL &&
client->socket->IsConnected())^
{^
client->SetCollectionUploadSlot(true);^
RemoveFromWaitingQueue(client, true);^
AddUpNextClient(_T("Collection Priority Slot"), client);^
return;^
}^
else^
client->SetCollectionUploadSlot(false);^
The assumptions of the poster are correct. My proposal for this
feature is to allow all files, default 10kb as an option with
an upper hard-coded limit of 1MB to avoid abuse.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=5061>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [Mldonkey-users] [patch #5061] New option small_files_slot_below to push release of small files,
spiralvoice <=