diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-10-01 15:00:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 15:00:35 +0100 |
commit | b471d4d77ac884bc232a6a09d01f3fd4c3aa3a38 (patch) | |
tree | e4be7a0ee7928fd7f7f9e2d95c74e76cce073481 /internal/setup/base.go | |
parent | 378a0520be8a03ee4c0bab6de8a1fff24bf4dcdf (diff) |
Set internal HTTP API timeout to 10 minutes (#1459)
Diffstat (limited to 'internal/setup/base.go')
-rw-r--r-- | internal/setup/base.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/setup/base.go b/internal/setup/base.go index f0009d19..f9ddfdf7 100644 --- a/internal/setup/base.go +++ b/internal/setup/base.go @@ -119,7 +119,7 @@ func NewBaseDendrite(cfg *config.Dendrite, componentName string, useHTTPAPIs boo logrus.WithError(err).Warnf("Failed to create cache") } - apiClient := http.Client{} + apiClient := http.Client{Timeout: time.Minute * 10} client := http.Client{Timeout: HTTPClientTimeout} if cfg.FederationSender.Proxy.Enabled { client.Transport = &http.Transport{Proxy: http.ProxyURL(&url.URL{ |