Skip to content

Commit

Permalink
[USM] Fix dynamic table map cleaner interval (#22987)
Browse files Browse the repository at this point in the history
[USM] Fix dynamic table map cleaner interval
  • Loading branch information
amitslavin authored Feb 21, 2024
1 parent 36b0bfd commit fadc999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/network/protocols/http2/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (p *Protocol) setupHTTP2InFlightMapCleaner(mgr *manager.Manager) {
}

ttl := p.cfg.HTTPIdleConnectionTTL.Nanoseconds()
mapCleaner.Clean(p.cfg.HTTPMapCleanerInterval, nil, nil, func(now int64, key http2StreamKey, val EbpfTx) bool {
mapCleaner.Clean(p.cfg.HTTP2DynamicTableMapCleanerInterval, nil, nil, func(now int64, key http2StreamKey, val EbpfTx) bool {
if updated := int64(val.Stream.Response_last_seen); updated > 0 {
return (now - updated) > ttl
}
Expand Down

0 comments on commit fadc999

Please sign in to comment.