Skip to content

Overhaul stats events: merge UDP core events with a different IP version #1380

Closed

Description

@josecelano

Change events from this:

bittorrent_udp_tracker_core::statistics::event::Event:

pub enum Event {
    Udp4Connect,
    Udp4Announce,
    Udp4Scrape,
    Udp6Connect,
    Udp6Announce,
    Udp6Scrape,
}

To this:

pub enum Event {
    UdpConnect { context: ConnectionContext },
    UdpAnnounce { context: ConnectionContext },
    UdpScrape { context: ConnectionContext },
}

pub struct ConnectionContext {
    client_socket_addr: SocketAddr,
    server_socket_addr: SocketAddr,
}

This have also be done for HTTP core events.

Activity

  1. added
    - Developer -
    on Mar 17, 2025
  2. self-assigned this
    on Mar 17, 2025
  3. added theissue type on Mar 17, 2025
  4. added a commit that references this issue on Mar 17, 2025
  5. added 2 commits that reference this issue on Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

- Developer -

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions