merged web seed fix from RC_0_16

This commit is contained in:
Arvid Norberg 2012-10-07 02:30:10 +00:00
parent 35032a6950
commit 0a6c1e05c2
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
* fix uTP edge case where udp socket buffer fills up
* fix nagle implementation in uTP
* fix performance issue in web seed downloader (coalescing of blocks sometimes wouldn't work)
* web seed fixes (better support for torrents without trailing / in web seeds)
* fix some issues with SSL over uTP connections
* fix UDP trackers trying all endpoints behind the hostname

View File

@ -88,7 +88,7 @@ namespace libtorrent
// we always prefer downloading 1 MiB chunks
// from web seeds, or whole pieces if pieces
// are larger than a MiB
prefer_whole_pieces((std::min)((1024 * 1024) / tor->torrent_file().piece_length(), 1));
prefer_whole_pieces((std::max)((1024 * 1024) / tor->torrent_file().piece_length(), 1));
// we want large blocks as well, so
// we can request more bytes at once