From 708931f98a5e891605df166580ee0623a233e532 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 29 Jun 2017 22:07:42 +0100 Subject: [PATCH] ignore endpoints with >1 adjacency in process rendering This eliminates the worst effects of #2665. --- render/process.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/render/process.go b/render/process.go index c6ce509b72..d38cc610e8 100644 --- a/render/process.go +++ b/render/process.go @@ -123,6 +123,13 @@ func MapEndpoint2Process(n report.Node, local report.Networks) report.Nodes { return report.Nodes{} } + if len(n.Adjacency) > 1 { + // We cannot be sure that the pid is associated with all the + // connections. It is better to drop such an endpoint than + // risk rendering bogus connections. + return report.Nodes{} + } + id := report.MakeProcessNodeID(report.ExtractHostID(n), pid) node := NewDerivedNode(id, n).WithTopology(report.Process) node.Latest = node.Latest.Set(process.PID, timestamp, pid)