Refactor HTTP transports (#16222)

This commit is contained in:
Aditya Manthramurthy
2022-12-12 20:31:21 -08:00
committed by GitHub
parent 37e20f6ef2
commit 2d60bf8c50
8 changed files with 232 additions and 177 deletions

View File

@@ -551,7 +551,7 @@ func applyDynamicConfigForSubSys(ctx context.Context, objAPI ObjectLayer, s conf
// Initialize remote instance transport once.
getRemoteInstanceTransportOnce.Do(func() {
getRemoteInstanceTransport = newHTTPTransport(apiConfig.RemoteTransportDeadline)
getRemoteInstanceTransport = NewHTTPTransportWithTimeout(apiConfig.RemoteTransportDeadline)
})
case config.CompressionSubSys:
cmpCfg, err := compress.LookupConfig(s[config.CompressionSubSys][config.Default])