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

Add gokrazy.WaitForNetwork() #168

Open
stapelberg opened this issue Feb 5, 2023 · 1 comment
Open

Add gokrazy.WaitForNetwork() #168

stapelberg opened this issue Feb 5, 2023 · 1 comment

Comments

@stapelberg
Copy link
Contributor

Currently, we use gokrazy.WaitForClock() as a catch-all for clock and network.

This works well on the Raspberry Pi, which doesn’t have an RTC chip on board, and hence needs the network before the clock can be set.

But, in qemu (and other devices that have a functioning clock on every boot), this doesn’t work.

We should add some sort of connectivity checking.

@oliverpool
Copy link
Contributor

My 2 cents: call it gokrazy.WaitForClockAndNetwork, so that it can be used for https requests (if the clock is wrong, the certificate verification should fail).

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

No branches or pull requests

2 participants