The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/8108

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
VMs tend to have events every few seconds, as a result the timeout was
never hit and the agent never detected.

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 902c64ca87f97d03e6b0648fb729c3530910273f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Sun, 1 Nov 2020 00:26:52 -0400
Subject: [PATCH] lxd/qmp: Ensure checkbuffer is called
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

VMs tend to have events every few seconds, as a result the timeout was
never hit and the agent never detected.

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 lxd/instance/drivers/qmp/monitor.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lxd/instance/drivers/qmp/monitor.go 
b/lxd/instance/drivers/qmp/monitor.go
index 3e4d3d1dd8..9a93911a5a 100644
--- a/lxd/instance/drivers/qmp/monitor.go
+++ b/lxd/instance/drivers/qmp/monitor.go
@@ -130,6 +130,9 @@ func (m *Monitor) run() error {
                                        continue
                                }
 
+                               // Check if the ringbuffer was updated 
(non-blocking).
+                               go checkBuffer()
+
                                if m.eventHandler != nil {
                                        m.eventHandler(e.Event, e.Data)
                                }
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to