Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions internal/hammer/hammer.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,16 @@ var (
bearerToken = flag.String("bearer_token", "", "The bearer token for auth. For GCP this is the result of `gcloud auth print-access-token`")
bearerTokenWrite = flag.String("bearer_token_write", "", "The bearer token for auth to write. For GCP this is the result of `gcloud auth print-identity-token`. If unset will default to --bearer_token.")

forceHTTP2 = flag.Bool("force_http2", false, "Use HTTP/2 connections *only*")
httpTimeout = flag.Duration("http_timeout", 30*time.Second, "Timeout for HTTP requests")
forceHTTP2 = flag.Bool("force_http2", false, "Use HTTP/2 connections *only*")

hc = &http.Client{
Transport: &http.Transport{
MaxIdleConns: 256,
MaxIdleConnsPerHost: 256,
DisableKeepAlives: false,
},
Timeout: 30 * time.Second,
Timeout: *httpTimeout,
}
)

Expand Down
Loading