diff --git a/core.go b/core.go index 8a2cb1c..fb476fb 100644 --- a/core.go +++ b/core.go @@ -38,7 +38,16 @@ type coreClient struct { func newCoreClient(cfg coreConfig) (*coreClient, error) { var c = &coreClient{ - cfg: cfg, client: &http.Client{}, + cfg: cfg, + client: &http.Client{ + Transport: &http.Transport{ + MaxIdleConns: 100, + MaxIdleConnsPerHost: 10, + MaxConnsPerHost: 20, + IdleConnTimeout: 90 * time.Second, + DisableKeepAlives: false, + }, + }, blockTxidsCache: newLRU[string, *coreBlockTxids](500), blockVerboseCache: newLRU[string, *coreVerboseBlock](500), }