From 36f99c9a3f00d2f65d76220603f32f3667b79c38 Mon Sep 17 00:00:00 2001 From: Jacob McCann Date: Wed, 10 Jan 2018 13:39:40 -0600 Subject: [PATCH] Add explicit default for DRONE_KEEPALIVE_TIMEOUT --- cmd/drone-agent/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/drone-agent/main.go b/cmd/drone-agent/main.go index 33a93d6a2..28b75bb71 100644 --- a/cmd/drone-agent/main.go +++ b/cmd/drone-agent/main.go @@ -3,6 +3,7 @@ package main import ( "fmt" "os" + "time" "github.com/drone/drone/version" @@ -89,6 +90,7 @@ func main() { EnvVar: "DRONE_KEEPALIVE_TIMEOUT", Name: "keepalive-timeout", Usage: "after having pinged for keepalive check, the client waits for a duration of Timeout and if no activity is seen even after that the connection is closed.", + Value: time.Second * 20, }, }