bump request queue sizes in high performance mode

This commit is contained in:
Arvid Norberg 2013-03-16 21:52:54 +00:00
parent 6bbda29c16
commit 57e95879ec
1 changed files with 6 additions and 0 deletions

View File

@ -185,6 +185,12 @@ namespace libtorrent
{
session_settings set;
// allow peers to request a lot of blocks at a time,
// to be more likely to saturate the bandwidth-delay-
// product.
set.max_out_request_queue = 1500;
set.max_allowed_in_request_queue = 2000;
// don't throttle TCP, assume there is
// plenty of bandwidth
set.mixed_mode_algorithm = session_settings::prefer_tcp;