mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Increase self-check timeouts and threshold
This commit is contained in:
parent
0c5bdbbc13
commit
17f67be521
2 changed files with 7 additions and 3 deletions
|
@ -28,6 +28,10 @@ var (
|
|||
selfcheckFails int
|
||||
)
|
||||
|
||||
// selfcheckFailThreshold holds the threshold of how many times the selfcheck
|
||||
// must fail before it is reported.
|
||||
const selfcheckFailThreshold = 5
|
||||
|
||||
func init() {
|
||||
module = modules.Register("compat", prep, start, stop, "base", "network", "interception", "netenv", "notifications")
|
||||
|
||||
|
@ -82,7 +86,7 @@ func selfcheckTaskFunc(ctx context.Context, task *modules.Task) error {
|
|||
selfcheckFails++
|
||||
|
||||
log.Errorf("compat: %s", err)
|
||||
if selfcheckFails >= 3 {
|
||||
if selfcheckFails >= selfcheckFailThreshold {
|
||||
issue.notify(err)
|
||||
}
|
||||
|
||||
|
|
|
@ -28,12 +28,12 @@ var (
|
|||
systemIntegrationCheckDialNet = fmt.Sprintf("ip4:%d", uint8(SystemIntegrationCheckProtocol))
|
||||
systemIntegrationCheckDialIP = SystemIntegrationCheckDstIP.String()
|
||||
systemIntegrationCheckPackets = make(chan packet.Packet, 1)
|
||||
systemIntegrationCheckWaitDuration = 10 * time.Second
|
||||
systemIntegrationCheckWaitDuration = 30 * time.Second
|
||||
|
||||
// DNSCheckInternalDomainScope is the domain scope to use for dns checks.
|
||||
DNSCheckInternalDomainScope = ".self-check." + resolver.InternalSpecialUseDomain
|
||||
dnsCheckReceivedDomain = make(chan string, 1)
|
||||
dnsCheckWaitDuration = 10 * time.Second
|
||||
dnsCheckWaitDuration = 30 * time.Second
|
||||
dnsCheckAnswerLock sync.Mutex
|
||||
dnsCheckAnswer net.IP
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue