mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 09:41:57 +00:00
fix: handle errors reported by the conntrack package
In particular, ENOBUFS which indicates data has been dropped. With this change the collector will restart, thus resynchronising with the OS.
This commit is contained in:
@@ -147,6 +147,11 @@ func (c *conntrackWalker) run() {
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
if f.Err != nil {
|
||||
log.Errorf("conntrack event error: %v", f.Err)
|
||||
stop()
|
||||
return
|
||||
}
|
||||
if c.relevant(f) {
|
||||
c.handleFlow(f)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user