Merge pull request #2297 from jmccann/keepalive_fix

Add explicit default for DRONE_KEEPALIVE_TIMEOUT
This commit is contained in:
Brad Rydzewski 2018-01-14 10:12:06 -08:00 committed by GitHub
commit afc71ec5a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"os" "os"
"time"
"github.com/drone/drone/version" "github.com/drone/drone/version"
@ -89,6 +90,7 @@ func main() {
EnvVar: "DRONE_KEEPALIVE_TIMEOUT", EnvVar: "DRONE_KEEPALIVE_TIMEOUT",
Name: "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.", 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,
}, },
} }