Skip to content

Commit

Permalink
[NPM-3552] add batch size to iterate funciton (#33314)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitaiBl authored Jan 24, 2025
1 parent f8867cf commit 84cac25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/network/tracer/connection/ebpf_tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func (t *ebpfTracer) GetConnections(buffer *network.ConnectionBuffer, filter fun
tcp := new(netebpf.TCPStats)

var tcp4, tcp6, udp4, udp6 float64
entries := t.conns.Iterate()
entries := t.conns.IterateWithBatchSize(1000)
for entries.Next(key, stats) {
if cookie, exists := connsByTuple[*key]; exists && cookie == stats.Cookie {
// already seen the connection in current batch processing,
Expand Down

0 comments on commit 84cac25

Please sign in to comment.