Calibrate process lookup times for Windows

This commit is contained in:
Daniel
2023-04-27 17:09:49 +02:00
parent 42a75c5f45
commit 6fa3bcb115
4 changed files with 17 additions and 7 deletions

View File

@@ -10,6 +10,11 @@ import (
"github.com/safing/portmaster/network/socket"
)
var (
lookupTries = 20 // With a max wait of 5ms, this amounts to up to 100ms.
fastLookupTries = 2
)
func init() {
// This increases performance on unsupported system.
// It's not critical at all and does not break anything if it fails.