From f46664546a352cde38ecff6d647932561ba27b67 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Thu, 18 Jun 2020 13:18:01 -0500 Subject: Poll on events for file reading When multiple connections are monitoring events via the remote API, the inotify in the hpcloud library seems unable to consistently send events. Switching from inotify to poll seems to clear this up. Fixes: #6664 Signed-off-by: Brent Baude --- libpod/events/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod/events/events.go') diff --git a/libpod/events/events.go b/libpod/events/events.go index 0d8c6b7d6..0253b1ee5 100644 --- a/libpod/events/events.go +++ b/libpod/events/events.go @@ -202,5 +202,5 @@ func (e EventLogFile) getTail(options ReadOptions) (*tail.Tail, error) { if len(options.Until) > 0 { stream = false } - return tail.TailFile(e.options.LogFilePath, tail.Config{ReOpen: reopen, Follow: stream, Location: &seek, Logger: tail.DiscardingLogger}) + return tail.TailFile(e.options.LogFilePath, tail.Config{ReOpen: reopen, Follow: stream, Location: &seek, Logger: tail.DiscardingLogger, Poll: true}) } -- cgit v1.2.3-54-g00ecf