New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peers column in main interface shows randomly high number once last peer finishes #9660

Open
eltorqiro opened this Issue Oct 7, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@eltorqiro

eltorqiro commented Oct 7, 2018

qBittorrent version and Operating System

qBittorrent v4.1.3 Windows 10 Pro x64

If on linux, libtorrent and Qt version

n/a

What is the problem

When becoming a seed on a torrent, once the last peer finishes (reaches 100%) the Peers column in the main interface shows a seemingly random, relatively high number. The Trackers tab doesn't show this incorrect value in its Peers column (all trackers, DHT, PeX, LPE report 0).

If a new peer comes along for the torrent, the Peers column once again shows correctly (e.g. 1) which will match the Trackers tab values.

What is the expected behavior

Peers column should show 0 when peers are actually 0 or unknown.

Steps to reproduce

  1. Join a torrent (for ease of testing choose one with a very low peer/seed count) - I used one from a magnet, unsure if this makes any difference.
  2. Wait until you become a seed, with at least one peer remaining. Note the Peers column will show a value close to or exactly matching the peers count reported in the Trackers tab (e.g. 1-5).
  3. Wait until the last remaining peer reaches 100%. Note the Peers column will now show a strange, relatively high random number (e.g. 36 or 652 etc), but the Trackers tab will show the correct value of all zeros for peers.
  4. Leave torrent seeding as long as you can. Observe three things:
    a) there will be no connections from these 'non-real' peers,
    b) the bogus Peers value sometimes increases in large increments (e.g. doubling), but never decreases (I haven't seen a pattern yet),
    c) if a new real peer does come along the Peers column will show 1 as it should (which will also match the updated Trackers tab values).
  5. Pause and restart the torrent - the bogus Peers column value will remain.
  6. Restart qBittorrent - the bogus Peers column value correctly shows 0 as it should.

Extra info(if any)

This doesn't seem to occur if you start a new torrent as the only seed and no peers, or if you join an existing torrent as a seed with no peers (which I think is similar to/the same as restart qb). It seems to be something specific that happens at the moment of a torrent where you are a seed flipping from some peers to zero peers, or perhaps during the next tracker update after that happens.

Unsure if this is a libtorrent or qb problem, since the Trackers tab continues to show valid values throughout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment