Skip to content

Commit fa311e6

Browse files
committed
limit MaxConnsPerHost to avoid to many connections on start up
1 parent cc8cf5d commit fa311e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: requester/requester.go

+1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ func (b *Work) runWorkers() {
280280
ServerName: b.Request.Host,
281281
},
282282
MaxIdleConnsPerHost: min(b.C, maxIdleConn),
283+
MaxConnsPerHost: min(b.C, maxIdleConn),
283284
DisableCompression: b.DisableCompression,
284285
DisableKeepAlives: b.DisableKeepAlives,
285286
Proxy: http.ProxyURL(b.ProxyAddr),

0 commit comments

Comments
 (0)