forked from premiere/premiere-libtorrent
merged web seed fix from RC_0_16
This commit is contained in:
parent
35032a6950
commit
0a6c1e05c2
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue