Close gopacket connection immediately, basic throttling and assembler mutex removal

* close gopacket conn immediately

* increase last ack threshold to 3 seconds

* remove empty condition

* add periodic stats

* protect connections from concurrent updates

* implement basic throttling base on live streams count

* remove assembler mutex

* pr fixes

* change max conns default to 500

* create connectionId type

* fix linter
This commit is contained in:
David Levanon
2022-06-19 16:47:03 +03:00
committed by GitHub
parent 167bbe3741
commit 99cb0b4f44
11 changed files with 273 additions and 124 deletions

View File

@@ -34,7 +34,7 @@ type tlsPoller struct {
extension *api.Extension
procfs string
pidToNamespace sync.Map
fdCache *simplelru.LRU // Actual typs is map[string]addressPair
fdCache *simplelru.LRU // Actual type is map[string]addressPair
evictedCounter int
}