aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vm.go
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm.go')
-rw-r--r--vm/vm.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/vm.go b/vm/vm.go
index 3e6ee0cd7..28eddeef0 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -225,7 +225,7 @@ func (inst *Instance) MonitorExecution(outc <-chan []byte, errc <-chan error,
// in 140-280s detection delay.
// So the current timeout is 5 mins (300s).
// We don't want it to be too long too because it will waste time on real hangs.
- if time.Since(lastExecuteTime) < noOutputTimeout {
+ if time.Since(lastExecuteTime) < NoOutputTimeout {
break
}
diag, wait := inst.Diagnose()
@@ -347,7 +347,7 @@ var (
beforeContext = 1024 << 10
afterContext = 128 << 10
+ NoOutputTimeout = 5 * time.Minute
tickerPeriod = 10 * time.Second
- noOutputTimeout = 5 * time.Minute
waitForOutputTimeout = 10 * time.Second
)