From ff1234b803c9d7046a66ebd9117fe423b793588e Mon Sep 17 00:00:00 2001 From: Chris Hager Date: Fri, 5 Apr 2024 12:47:21 +0200 Subject: [PATCH] blocksim - increase http client transport settings --- services/api/blocksim_ratelimiter.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/api/blocksim_ratelimiter.go b/services/api/blocksim_ratelimiter.go index 51296b54..9f2634db 100644 --- a/services/api/blocksim_ratelimiter.go +++ b/services/api/blocksim_ratelimiter.go @@ -48,6 +48,12 @@ func NewBlockSimulationRateLimiter(blockSimURL string) *BlockSimulationRateLimit blockSimURL: blockSimURL, client: http.Client{ //nolint:exhaustruct Timeout: simRequestTimeout, + Transport: &http.Transport{ + MaxIdleConns: 100, + MaxIdleConnsPerHost: 100, + MaxConnsPerHost: 100, + IdleConnTimeout: 90 * time.Second, + }, }, } }