Skip to content

Commit

Permalink
chore(client): increase timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmalkmus committed Aug 19, 2024
1 parent 9827bb6 commit c9c86ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions axiom/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ type service struct {
func DefaultHTTPClient() *http.Client {
return &http.Client{
Transport: DefaultHTTPTransport(),
Timeout: time.Minute * 5,
}
}

Expand All @@ -69,8 +70,8 @@ func DefaultHTTPTransport() http.RoundTripper {
Timeout: time.Second * 30,
KeepAlive: time.Second * 30,
}).DialContext,
IdleConnTimeout: time.Second * 90,
ResponseHeaderTimeout: time.Second * 30,
IdleConnTimeout: time.Minute,
ResponseHeaderTimeout: time.Minute * 2,
TLSHandshakeTimeout: time.Second * 10,
ExpectContinueTimeout: time.Second * 1,
ForceAttemptHTTP2: true,
Expand Down

0 comments on commit c9c86ca

Please sign in to comment.