Discussion:
[libtorrent] Speed limiting
Bedeho Mender
2016-06-29 12:58:13 UTC
Permalink
1) Is it correct that up/down speed limits can only be directly set on
individual torrents
(torrent_handle::set_upload/download_limit), not session wide, or on
individual peer connections?

2) Is it correct that this upload limit also applies to
peer_connection::send_buffer
?

Bedeho

Arvid Norberg
2016-06-29 22:33:37 UTC
Permalink
Post by Bedeho Mender
1) Is it correct that up/down speed limits can only be directly set on
individual torrents
(torrent_handle::set_upload/download_limit), not session wide, or on
individual peer connections?
You can set rate limits session wide and per torrent. In previous versions
of libtorrent you could also set rate limits on peers, but that feature was
removed.
Post by Bedeho Mender
2) Is it correct that this upload limit also applies to
peer_connection::send_buffer
?
The rate limits only apply to peers (so, yes). the DHT and tracker traffic
will count against the limit, but they're not subject to it. The DHT has
its own limit.
--
Arvid Norberg
Continue reading on narkive:
Loading...