Skip to content
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

feat(iroh-net-report)!: add QUIC address discovery probes #3028

Merged
merged 5 commits into from
Dec 11, 2024

Conversation

ramfox
Copy link
Contributor

@ramfox ramfox commented Dec 11, 2024

Description

Adds probes for QUIC Address Discovery.

Breaking Changes

  • iroh-net-report
    • changed
      • iroh_net_report::Client::get_report takes new parameter quic_config: net_report::QuicConfig
      • iroh_net_report::Client::get_report_channel takes new parameter quic_config: net_report::QuicConfig

Notes & open questions

Next PR is properly adding this to iroh (& a new PR for iroh-doctor). magicsock.rs was adjusted so that iroh can still depend on the repo version of net-report, but does not enable QAD.

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

@ramfox ramfox self-assigned this Dec 11, 2024
@ramfox ramfox added this to the v0.30.0 milestone Dec 11, 2024
iroh-net-report/src/reportgen.rs Outdated Show resolved Hide resolved
iroh-net-report/src/reportgen.rs Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Dec 11, 2024

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3028/docs/iroh/

Last updated: 2024-12-11T19:30:38Z

Copy link

github-actions bot commented Dec 11, 2024

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: 7d209e3

@ramfox ramfox changed the title feat(iroh-net-report): add QUIC address discovery probes feat(iroh-net-report)!: add QUIC address discovery probes Dec 11, 2024
Copy link
Contributor

@flub flub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

iroh-net-report/src/lib.rs Show resolved Hide resolved
iroh-net-report/src/reportgen.rs Outdated Show resolved Hide resolved
iroh-net-report/src/reportgen.rs Outdated Show resolved Hide resolved
iroh-net-report/src/reportgen/probes.rs Outdated Show resolved Hide resolved
@ramfox ramfox added this pull request to the merge queue Dec 11, 2024
Merged via the queue into main with commit cf0f8cc Dec 11, 2024
25 of 26 checks passed
@dignifiedquire dignifiedquire deleted the ramfox/net-report-qad branch December 11, 2024 20:11
probe.clone(),
));
}
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI this is a prime place for using the fancy new-ish syntax of let Some(host) = url.host_str() else { return ... }; Not important enough to follow up on though.

let host = match url.host_str() {
Some(host) => host,
None => {
return Err(ProbeError::Error(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum, I believe this should be ProbeError::AbortSet? Why did you choose just this one? If the RelayUrl has no host none of the retries after a small delay will work either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants