Reduce PID finding retries and simply proc interface on linux

This commit is contained in:
Daniel
2023-12-18 17:03:48 +01:00
parent 6822b7a8a8
commit d67b1e8a64
5 changed files with 24 additions and 72 deletions

View File

@@ -10,13 +10,6 @@ var (
getTCP6Table = iphelper.GetTCP6Table
getUDP4Table = iphelper.GetUDP4Table
getUDP6Table = iphelper.GetUDP6Table
// With a max wait of 5ms, this amounts to up to 25ms,
// excluding potential data fetching time.
// Measured on Windows: ~150ms
lookupTries = 5
fastLookupTries = 2
)
// CheckPID checks the if socket info already has a PID and if not, tries to find it.