mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Review feedback
This commit is contained in:
@@ -122,6 +122,11 @@ var ConntrackModulePresent = func() bool {
|
||||
}
|
||||
|
||||
func (c *conntracker) loop() {
|
||||
// conntrack can sometimes fail with ENOBUFS, when there is a particularly
|
||||
// high connection rate. In these cases just retry in a loop, so we can
|
||||
// survive the spike. For sustained loads this degrades nicely, as we
|
||||
// read the table before starting to handle events - basically degrading to
|
||||
// polling.
|
||||
for {
|
||||
c.run()
|
||||
c.clearFlows()
|
||||
|
||||
Reference in New Issue
Block a user