[lxc-devel] [lxd/master] bump the monitor timeout to 5s
tych0 on Github
lxc-bot at linuxcontainers.org
Mon Mar 21 17:55:33 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 492 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160321/53f7b390/attachment.bin>
-------------- next part --------------
From 6266cb80f73e8163e91cc8f865e19d440a01ae35 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen at canonical.com>
Date: Mon, 21 Mar 2016 11:54:47 -0600
Subject: [PATCH] bump the monitor timeout to 5s
After some discusssion on IRC, it seems that 1s might not be long enough.
Let's bump it to 5s until we have a better solution.
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
lxd/container_lxc.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index 3397b69..5733c41 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -1526,7 +1526,7 @@ func (c *containerLXC) getLxcState() (lxc.State, error) {
select {
case state := <-monitor:
return state, nil
- case <-time.After(time.Second):
+ case <-time.After(5 * time.Second):
return lxc.StateMap["FROZEN"], LxcMonitorStateError
}
}
More information about the lxc-devel
mailing list