wgengine/monitor: add a poller to the Windows link change monitor

The poller is slow by default, but speeds up for a bit after a network
change, in case WPAD/PAC files are still loading.
This commit is contained in:
Brad Fitzpatrick
2020-08-24 21:23:52 -07:00
parent 1be6c6dd70
commit 24d1a38e81
2 changed files with 97 additions and 16 deletions

View File

@ -110,7 +110,7 @@ func (m *Mon) pump() {
default:
}
// Keep retrying while we're not closed.
m.logf("error receiving from connection: %v", err)
m.logf("error from link monitor: %v", err)
time.Sleep(time.Second)
continue
}