Do not get process+profile for info only packets

In order to stop creating profiles for processes within docker.
This commit is contained in:
Daniel 2023-09-19 16:42:54 +02:00
parent af41e07648
commit d58abe563f

View file

@ -488,6 +488,12 @@ func (conn *Connection) GatherConnectionInfo(pkt packet.Packet) (err error) {
// Errors are informational and are logged to the context.
}
// Only get process and profile with first real packet.
// TODO: Remove when we got full VM/Docker support.
if pkt.InfoOnly() {
return nil
}
// Get Process and Profile.
if conn.process == nil {
conn.process, err = process.GetProcessWithProfile(pkt.Ctx(), conn.PID)