Skip to content

Commit

Permalink
default to 10s
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Jun 27, 2024
1 parent 2fbd88e commit 40822a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,10 @@ type TimeoutVariants struct {
}

func (options *Options) BuildTimeoutVariants() TimeoutVariants {
if options.Timeout == 0 {
options.Timeout = 10
}

timeoutVariants := TimeoutVariants{
// MaxResponseHeaderTimeout is the timeout for response headers
// to be read from the server (this prevents infinite hang started by server if any)
Expand Down

0 comments on commit 40822a9

Please sign in to comment.