Skip to content

Commit 8199c69

Browse files
committed
docs: update comments
1 parent 6a98210 commit 8199c69

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmd/sponge/commands/perftest/http/http1.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

cmd/sponge/commands/perftest/http/http2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)