mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
Merge pull request #2297 from jmccann/keepalive_fix
Add explicit default for DRONE_KEEPALIVE_TIMEOUT
This commit is contained in:
commit
afc71ec5a6
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue