fixed parole mode with timeouts and made it optional

This commit is contained in:
Arvid Norberg
2008-07-11 09:23:22 +00:00
parent de8f676b98
commit 589e098002
3 changed files with 19 additions and 1 deletions

View File

@@ -121,6 +121,7 @@ namespace libtorrent
, upnp_ignore_nonrouters(true)
, send_buffer_watermark(80 * 1024)
, auto_upload_slots(true)
, use_parole_mode(true)
, cache_size(512)
, cache_expiry(60)
, outgoing_ports(0,0)
@@ -342,6 +343,13 @@ namespace libtorrent
// the manual settings, through max_uploads.
bool auto_upload_slots;
// if set to true, peers that participate in a failing
// piece is put in parole mode. i.e. They will only
// download whole pieces until they either fail or pass.
// they are taken out of parole mode as soon as they
// participate in a piece that passes.
bool use_parole_mode;
// the disk write cache, specified in 16 KiB blocks.
// default is 512 (= 8 MB)
int cache_size;