Skip to content

Questions about healthcheck #613

Answered by qdm12
TChilderhose asked this question in Q&A
Sep 11, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hi there! Thanks for the detailed discussion and digging through the code!

The healthcheck code as you've seen does a dns resolution to github.com. You are right about the DNS cache, I was exactly thinking about it this morning. See the TODOs 1. below.

The healthcheck code runs every 5s when it's stable/healthy, and every second if it encountered a failure, until it succeeds. Now these times are independent from the VPN durations. I have to admit, I got confused myself looking at the code for a solid 2 minutes.

It's set here initially:

healthyWait: config.OpenVPN.Initial,

If it succeeds, it's reset here:

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@qdm12
Comment options

@TChilderhose
Comment options

Answer selected by TChilderhose
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants