libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

[Feature Request] In `peer_info`, add a field which says which tracker(s) each specific peer came from

Open DeflateAwning opened this issue 3 years ago • 11 comments

In the peer_info call, add a field which indicates which tracker(s) each specific peer came from.

This is required to solve the qBittorrent feature request here: https://github.com/qbittorrent/qBittorrent/issues/17901

DeflateAwning avatar Dec 05 '22 22:12 DeflateAwning

This looks like an improvement in user tracking rather than an increase in information transfer efficiency. You're not from the police?

master255 avatar Dec 07 '22 14:12 master255

It's not so simple to add this information in an efficient way. Any peer can have been received from any tracker, and there may be very many peers and very many trackers. That may end up being a large matrix (although, each cell only has to be 1 bit).

To make the data structure efficient enough to not make the cost too high for everyone.

arvidn avatar Dec 07 '22 21:12 arvidn

If a peer came via PEX first and later via tracker would the tracker still count as source? In such cases the trackers might seem more popluar than they acutally are.

MassaRoddel avatar Dec 08 '22 18:12 MassaRoddel

If a peer comes in via multiple trackers (counting PEX, DHT, etc. as trackers), then it will show all relevant trackers.

DeflateAwning avatar Dec 08 '22 20:12 DeflateAwning

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 Mar 18 '23 19:03 stale[bot]

I still want this

DeflateAwning avatar Mar 18 '23 20:03 DeflateAwning

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 Aug 12 '23 18:08 stale[bot]

I still want this

DeflateAwning avatar Aug 14 '23 03:08 DeflateAwning

It will never be in the general version of the library. Since you're the only one who needs it. If you need a custom enhancement, it should be a paid enhancement.

master255 avatar Aug 14 '23 08:08 master255