-
Notifications
You must be signed in to change notification settings - Fork 171
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
Conversation
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
probe.clone(), | ||
)); | ||
} | ||
}; |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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.
Description
Adds probes for QUIC Address Discovery.
Breaking Changes
iroh-net-report
iroh_net_report::Client::get_report
takes new parameterquic_config: net_report::QuicConfig
iroh_net_report::Client::get_report_channel
takes new parameterquic_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 thatiroh
can still depend on the repo version ofnet-report
, but does not enable QAD.Change checklist