Skip to content

Commit

Permalink
add log if there are two tcp_connect events come
Browse files Browse the repository at this point in the history
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
  • Loading branch information
Daxin Wang committed Jun 2, 2022
1 parent f57780e commit 86cc6c7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func (c *ConnectMonitor) ReadInTcpConnect(event *model.KindlingEvent) (*Connecti
c.connMap[connKey] = connStats
} else {
// Not possible to enter this branch
c.logger.Info("Receive another unexpected tcp_connect event", zap.String("connKey", connKey.String()))
connStats.EndTimestamp = event.Timestamp
connStats.Code = int(retValueInt)
}
Expand Down

0 comments on commit 86cc6c7

Please sign in to comment.