snowyu / libtorrent

Automatically exported from code.google.com/p/libtorrent
Other
1 stars 0 forks source link

Max connections per torrent don't seem to work #658

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Original bug report from qbittorrent tracker: 
https://github.com/qbittorrent/qBittorrent/issues/1864

The user has set the max connections per torrent to 2. However, he has a 
torrent where there are 12 peers connected and downloading. (see screenshot).

libtorrent version used is 0.16.16+svn9872

Original issue reported on code.google.com by hammered...@gmail.com on 7 Aug 2014 at 11:42

GoogleCodeExporter commented 9 years ago
hammered999: when that setting is changed, max connections per torrent, does it 
actually iterate over all existing torrents and set their limits individually?

if not, this could easily be reproduced by lowering the limit after adding the 
torrent. 

Original comment by arvid.no...@gmail.com on 7 Aug 2014 at 3:53

GoogleCodeExporter commented 9 years ago
Quoting the user:
>The program was started with such options (limitations). And number of peers 
grow up to 12. This is a bug.

Also I just checked the code and it does iterate over all torrents applying the 
new limit.

Original comment by hammered...@gmail.com on 7 Aug 2014 at 4:40

GoogleCodeExporter commented 9 years ago
I cannot reproduce this in client_test. (if anything, the peer-turnover feature 
seems a bit aggressive with limits this low).

Original comment by arvid.no...@gmail.com on 11 Aug 2014 at 4:04