From 72c4634d4968bad0b63df93bcf39297b99349e87 Mon Sep 17 00:00:00 2001 From: Zachary Wasserman Date: Wed, 25 Oct 2017 15:54:18 -0400 Subject: [PATCH] Increase timeout to open osquery extension socket (#194) Occasionally during tests the 5s timeout would expire. Bumping to 10s still seems like a reasonable limit, and may prevent startup from failing under unusual circumstances. --- osquery/runtime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osquery/runtime.go b/osquery/runtime.go index 9e187f7aa..1f89701cf 100644 --- a/osquery/runtime.go +++ b/osquery/runtime.go @@ -270,7 +270,7 @@ func (r *Runner) Healthy() error { // How long to wait before erroring because we cannot open the osquery // extension socket. -const socketOpenTimeout = 5 * time.Second +const socketOpenTimeout = 10 * time.Second // How often to try to open the osquery extension socket const socketOpenInterval = 200 * time.Millisecond