Change default timeout to 15s
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tyler 2019-10-16 19:13:27 -04:00
parent c3935b1d3c
commit e245573361
1 changed files with 6 additions and 2 deletions

View File

@ -70,6 +70,10 @@ func main() {
if err != nil {
log.Fatalln("Unable to bind client to address:", err)
}
} else {
api.Client = &http.Client{
Timeout: 15 * time.Second,
}
}
if config.Cache != "" {
@ -148,8 +152,8 @@ func constructBoundClient(addr string) (*http.Client, error) {
dialer := &net.Dialer{
LocalAddr: &localTCPAddr,
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
Timeout: 15 * time.Second,
KeepAlive: 15 * time.Second,
}
return &http.Client{