From b471d4d77ac884bc232a6a09d01f3fd4c3aa3a38 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 1 Oct 2020 15:00:35 +0100 Subject: [PATCH] Set internal HTTP API timeout to 10 minutes (#1459) --- internal/setup/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{