Change default timeout to 15s
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler 2019-10-16 19:13:27 -04:00
parent c3935b1d3c
commit e245573361

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{