Skip to content

fix(netcheck): Make ICMP ping optional#1137

Merged
flub merged 1 commit into
mainfrom
flub/netcheck-ping-optional
Jun 27, 2023
Merged

fix(netcheck): Make ICMP ping optional#1137
flub merged 1 commit into
mainfrom
flub/netcheck-ping-optional

Conversation

@flub

@flub flub commented Jun 27, 2023

Copy link
Copy Markdown
Contributor

On Linux you don't have permission to send ICMP pings by default, so
creating the pinger will fail. This should not make all of netcheck
fail.

On Linux you don't have permission to send ICMP pings by default, so
creating the pinger will fail.  This should not make all of netcheck
fail.
match Pinger::new().await {
Ok(pinger) => Some(pinger),
Err(err) => {
debug!("failed to create pinger: {err:#}");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe remove the https probes from the plan in this case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

hum, no i think they should stay in since they will keep working. I'm not really sure why these pingers are triggered by the https probes in the plan, the tailscale code only uses the https and pinger probes if the udp stun fails. but i decided that changing (or even investigating this) should not be mixed into this PR.

but good call, should create an issue not to forget: #1138

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe the pinger should be created lazily? The reason is that I went and finished a todo that they had, where the https probes are actually integrated into the plans, instead of being added manually after the fact.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, can we do this as part of #1138? In either case the fix of making failure to create the pinger non-fatal is needed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sure

@flub

flub commented Jun 27, 2023

Copy link
Copy Markdown
Contributor Author

Can we ignore this failure? it's a flaky one that I'd like to address separately: #1138

@flub flub merged commit ac6bb1a into main Jun 27, 2023
@flub flub deleted the flub/netcheck-ping-optional branch June 27, 2023 10:53
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