Change default timeout to 15s
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c3935b1d3c
commit
e245573361
|
@ -70,6 +70,10 @@ func main() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln("Unable to bind client to address:", err)
|
log.Fatalln("Unable to bind client to address:", err)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
api.Client = &http.Client{
|
||||||
|
Timeout: 15 * time.Second,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if config.Cache != "" {
|
if config.Cache != "" {
|
||||||
|
@ -148,8 +152,8 @@ func constructBoundClient(addr string) (*http.Client, error) {
|
||||||
|
|
||||||
dialer := &net.Dialer{
|
dialer := &net.Dialer{
|
||||||
LocalAddr: &localTCPAddr,
|
LocalAddr: &localTCPAddr,
|
||||||
Timeout: 30 * time.Second,
|
Timeout: 15 * time.Second,
|
||||||
KeepAlive: 30 * time.Second,
|
KeepAlive: 15 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
return &http.Client{
|
return &http.Client{
|
||||||
|
|
Loading…
Reference in New Issue