You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Overhaul stats: Add announced Peer to HTTP core announce event #1376
NOTICE: The tracker might change the peer IP, depending on tracker configuration, like whether the tracker is running behind a reverse proxy or not. I have also added the original_peer_ip to the event; otherwise, that info would be lost. I want the events to have all the info needed to re-build exactly the tracker history if needed.
That's the only information that the tracker might change now. I do not think the tracker will ever change other data but maybe we should include the received peer and announce peer in the event:
changed the title [-]Overhaul stats: add announced `Peer` to HTTP core `announce` event[/-][+]Overhaul stats: Add announced `Peer` to HTTP core `announce` event[/+]on Mar 18, 2025
I've finally decided to include only the Peer. The original_peer_ip, also referred to as remote_client_ip, is already included in the ConnectionContext.
I have also created an alias for the Peer information: PeerAnnouncement, as it represents the latest data received from that peer. Maybe we should rename the type Peer.
I don't think the tracker will modify other fields in the Peer before adding it to the peer list in the future, so it doesn't make sense to duplicate the entire peer just for one change.
I've also added the info_hash; otherwise, you don't know what swarm the peer belongs to.
Activity
[-]Overhaul stats: add announced `Peer` to HTTP core `announce` event[/-][+]Overhaul stats: Add announced `Peer` to HTTP core `announce` event[/+]feat: [torrust#1376] add peer info to TcpAnnounce event
feat: [torrust#1376] add peer info to TcpAnnounce event
josecelano commentedon Apr 22, 2025
I've finally decided to include only the
Peer. Theoriginal_peer_ip, also referred to asremote_client_ip, is already included in theConnectionContext.I have also created an alias for the
Peerinformation:PeerAnnouncement, as it represents the latest data received from that peer. Maybe we should rename the typePeer.I don't think the tracker will modify other fields in the
Peerbefore adding it to the peer list in the future, so it doesn't make sense to duplicate the entire peer just for one change.I've also added the
info_hash; otherwise, you don't know what swarm the peer belongs to.refactor: [torrust#1376] remove initial peer state from event. Only t…
feat: [torrust#1376] add info-hash to bittorrent_http_tracker_core::e…
Merge #1472: Enrich HTTP core `Event::TcpAnnounce` event
refactor: [torrust#1376] rename function
test: [torrust#1384,torrust#1376] add comment to mock time
Merge #1473: Enrich UDP core `Event::UdpAnnounce` event