Skip to content

Conversation

@camshaft
Copy link
Contributor

Description of changes:

This change adds a transmission interest debugger which prints out which component is wanting to transmit and what type of interest it has. I was using it in testing awhile back and thought it would be useful to have.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@camshaft camshaft marked this pull request as ready for review June 22, 2023 22:44
@WesleyRosenblum
Copy link
Contributor

How would one use this?

@camshaft
Copy link
Contributor Author

Anything that implements transmission::interest::Provider can be queried. So for example, you can query the connection:

let _ = self.transmission_interest(&mut transmission::interest::Debugger);

and you get something like this:

  /home/cameron/Projects/aws/s2n-quic/quic/s2n-quic-transport/src/stream/stream_container.rs:649:19 - NewData
  /home/cameron/Projects/aws/s2n-quic/quic/s2n-quic-transport/src/connection/local_id_registry.rs:725:15 - None
  /home/cameron/Projects/aws/s2n-quic/quic/s2n-quic-transport/src/connection/peer_id_registry.rs:669:15 - None

@camshaft camshaft merged commit 80cc65f into main Jun 23, 2023
@camshaft camshaft deleted the camshaft/tx-debugger branch June 23, 2023 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants