mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-10-12 01:58:46 +02:00
feat(cli): add stable provisioning failure codes
This commit is contained in:
1 parent
0dde645a8f
commit
a40eb70ce8
10 files changed
+1415
-118
No files matched your search
@@ -1654,12 +1654,17 @@ func isResourceExhaustion(err error, output []byte) bool {
|
||||
}
|
||||
|
||||
func (p *prog) scheduleDNSAfterVPNSettleRefresh(reason string, delay time.Duration) {
|
||||
time.AfterFunc(delay, func() {
|
||||
timer := time.AfterFunc(delay, func() {
|
||||
if p.dnsInterceptState == nil {
|
||||
return
|
||||
}
|
||||
p.refreshDNSAfterVPNSettle(reason)
|
||||
})
|
||||
// Track the timer like the other delayed rechecks, so intercept teardown
|
||||
// (and test cleanup) can stop it instead of letting it fire afterwards.
|
||||
p.pfDelayedRecheckMu.Lock()
|
||||
p.pfDelayedRecheckTimers = append(p.pfDelayedRecheckTimers, timer)
|
||||
p.pfDelayedRecheckMu.Unlock()
|
||||
}
|
||||
|
||||
// pfWatchdog periodically checks that our pf anchor is still active.
|
||||
|
||||
Reference in new issue
Block a user