HTTP timeout set to wrong value.

Because the defaultTimeout is defined as a constant you do not need to multiply it by time.Second again otherwise you end up with some stupid timeout as seen here. https://play.golang.org/p/Dl7rU_n_8Ej
This commit is contained in:
yon2004 2018-04-28 15:43:35 +10:00 committed by GitHub
parent a1a45b0f63
commit 9a44a5c920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ func NewUpstreamHTTPS(endpoint string) (Upstream, error) {
http2.ConfigureTransport(transport) http2.ConfigureTransport(transport)
client := &http.Client{ client := &http.Client{
Timeout: time.Second * defaultTimeout, Timeout: defaultTimeout,
Transport: transport, Transport: transport,
} }