diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-03-01 15:12:45 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-03-10 17:47:13 +0100 |
| commit | 094d49fe0c7597c2a679c8e0d57f77215fa6a1e3 (patch) | |
| tree | c6fdf0e7c39b6b732a6fa5db5456128b420e018d /ipc | |
| parent | 41b2457ddcbb366823be96b7030b82c80fd51a48 (diff) | |
ipc: increase default response timeout
Diffstat (limited to 'ipc')
| -rw-r--r-- | ipc/ipc.go | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |
