File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
cmd/sponge/commands/perftest/http Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,8 @@ func newHTTPClient(worker int) *http.Client {
177177 Timeout : 5 * time .Second ,
178178 KeepAlive : 15 * time .Second ,
179179 }).DialContext ,
180- MaxIdleConns : worker + 10 , // default 100
181- MaxIdleConnsPerHost : worker , // default 2
180+ MaxIdleConns : worker + 10 ,
181+ MaxIdleConnsPerHost : worker ,
182182 IdleConnTimeout : 90 * time .Second ,
183183 TLSHandshakeTimeout : 10 * time .Second ,
184184 ExpectContinueTimeout : 1 * time .Second , // default 1 second
Original file line number Diff line number Diff line change @@ -177,8 +177,8 @@ func newHTTP2Client(worker int) *http.Client {
177177 Timeout : 5 * time .Second ,
178178 KeepAlive : 15 * time .Second ,
179179 }).DialContext ,
180- MaxIdleConns : worker + 10 , // default 100
181- MaxIdleConnsPerHost : worker , // default 2
180+ MaxIdleConns : worker + 10 ,
181+ MaxIdleConnsPerHost : worker ,
182182 IdleConnTimeout : 90 * time .Second ,
183183 TLSHandshakeTimeout : 10 * time .Second ,
184184 ExpectContinueTimeout : 1 * time .Second , // default 1 second
You can’t perform that action at this time.
0 commit comments