diff --git a/dumpling/export/config.go b/dumpling/export/config.go index 16fb27fe1a198..933dedb81bc43 100644 --- a/dumpling/export/config.go +++ b/dumpling/export/config.go @@ -8,7 +8,6 @@ import ( "encoding/json" "fmt" "io/ioutil" - "net/http" "regexp" "strconv" "strings" @@ -532,21 +531,9 @@ func (conf *Config) createExternalStorage(ctx context.Context) (storage.External if err != nil { return nil, errors.Trace(err) } - httpClient := http.DefaultClient - httpClient.Timeout = 30 * time.Second - maxIdleConnsPerHost := http.DefaultMaxIdleConnsPerHost - if conf.Threads > maxIdleConnsPerHost { - maxIdleConnsPerHost = conf.Threads - } - transport := http.DefaultTransport.(*http.Transport).Clone() - transport.MaxIdleConnsPerHost = maxIdleConnsPerHost - httpClient.Transport = transport - - return storage.New(ctx, b, &storage.ExternalStorageOptions{ - HTTPClient: httpClient, - SkipCheckPath: true, - SendCredentials: false, - }) + + // TODO: support setting httpClient with certification later + return storage.New(ctx, b, &storage.ExternalStorageOptions{}) } const (