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

https://github.com/qdm12/gluetun/blob/87f4b9e4226d6bdcdf8552e42f868a98757dd246/internal/healthcheck/server.go#L35

If it succeeds, it's reset here:

https://…

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