libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

Seeds/Peers Counting

Open stalkerok opened this issue 2 years ago • 9 comments

2023-05-25_112508

How does libtorrent count seeds/peers? These values do not reflect reality at all and show complete nonsense.

2023-05-25_105852_

This is definitely not normal behavior.

stalkerok avatar May 25 '23 08:05 stalkerok

This question belongs in the qBittorrent repo, at least until you learn which libtorrent counters these numbers represent, you've read the docs about what they're supposed to do and if it's not what you expect, you can come here. But since we're already here... Numbers outside the parentheses are straightforward Seeds: num_seeds Peers (leechers): num_peers - num_seeds

I guess you're here for the numbers inside the parentheses: Total Seeds: (num_complete > -1) ? num_complete : list_seeds Docs: num_complete, list_seeds

Total Peers (leechers): (num_incomplete > -1) ? num_incomplete : (list_peers - list_seeds) Docs: num_incomplete, list_peers

thalieht avatar May 25 '23 15:05 thalieht

@thalieht, all this does not explain such numbers, sometimes it seems to me that these values ​​are absolutely random. Let's take the last torrent: Seeds 0(0) Peers 0(2999) Do you think there are really 0 seeds on this torrent and there are 2999 peers somewhere? How to find out real information about seeds, leechers and peers on the seeding torrent from this data? I think something is wrong here.

stalkerok avatar May 25 '23 16:05 stalkerok

I think something is wrong here.

The step after thinking this is to find out the exact definition of the counters and then investigate "ground truth" and see how the counters compare. For example, if the numbers reported by a tracker don't match reality, displaying those numbers don't necessarily mean there's a bug in the client. The tracker might just be responding with wrong numbers, or the tracker might not have a complete picture of a swarm.

arvidn avatar May 26 '23 20:05 arvidn

magnet:?xt=urn:btih:ae8913663c5972d33f149240423aabc8acd2a02e&tr=https%3a%2f%2fbt.t-ru.org%2fann You can see for yourself how real these numbers are.

stalkerok avatar May 26 '23 20:05 stalkerok

I don't understand what the bug report is. I think this is meant to be a bug report. There's a screenshot of a bunch of text and numbers. What's wrong with it?

arvidn avatar May 27 '23 07:05 arvidn

In the Peers (Пиры) column, the values are incorrect, too large, there can’t be such huge numbers, such a number of peers. I don’t know how the client found so many of them, they can’t be there, so I think that something is not working correctly on the libtorrent side (perhaps qbittorrent). In the Seeds (Сиды) column it also shows incorrect values, it shows 0, but they can't be 0. I specifically gave a magnet to check how many seeds and peers are actually on this torrent. How can I understand that there are enough seeds on this torrent and it can be deleted from the client if the client shows that there are 0 of them?

stalkerok avatar May 27 '23 17:05 stalkerok

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 17 '23 01:09 stale[bot]