Skip to content

Commit ac33f72

Browse files
committed
revert HTTP MaxIdleConns to 1, the instance is already pooled
1 parent 67f2fde commit ac33f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conn_http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func dialHttp(ctx context.Context, addr string, num int, opt *Options) (*httpCon
228228
DialContext: (&net.Dialer{
229229
Timeout: opt.DialTimeout,
230230
}).DialContext,
231-
MaxIdleConns: opt.MaxIdleConns,
231+
MaxIdleConns: 1,
232232
MaxConnsPerHost: opt.HttpMaxConnsPerHost,
233233
IdleConnTimeout: opt.ConnMaxLifetime,
234234
ResponseHeaderTimeout: opt.ReadTimeout,

0 commit comments

Comments
 (0)