From 094d49fe0c7597c2a679c8e0d57f77215fa6a1e3 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 1 Mar 2016 15:12:45 +0100 Subject: ipc: increase default response timeout --- ipc/ipc.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipc') diff --git a/ipc/ipc.go b/ipc/ipc.go index 0f8cac7ee..6f591961f 100644 --- a/ipc/ipc.go +++ b/ipc/ipc.go @@ -51,7 +51,10 @@ var ( flagCover = flag.Bool("cover", true, "collect coverage") flagNobody = flag.Bool("nobody", true, "impersonate into nobody") flagDebug = flag.Bool("debug", false, "debug output from executor") - flagTimeout = flag.Duration("timeout", 10*time.Second, "execution timeout") + // Executor protects against most hangs, so we use quite large timeout here. + // Executor can be slow due to global locks in namespaces and other things, + // so let's better wait than report false misleading crashes. + flagTimeout = flag.Duration("timeout", 1*time.Minute, "execution timeout") ) func DefaultFlags() (uint64, time.Duration) { -- cgit mrf-deployment