Skip to content

Commit

Permalink
Raised the default timeout from 10 seconds to 30 seconds
Browse files Browse the repository at this point in the history
Closes #43
  • Loading branch information
mrz1836 committed Nov 16, 2021
1 parent 6fa4cfc commit 7ed445c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func DefaultClientOptions() (clientOptions *ClientOptions) {
DialerKeepAlive: 20 * time.Second,
DialerTimeout: 5 * time.Second,
RequestRetryCount: 2,
RequestTimeout: 10 * time.Second,
RequestTimeout: 30 * time.Second,
TransportExpectContinueTimeout: 3 * time.Second,
TransportIdleTimeout: 20 * time.Second,
TransportMaxIdleConnections: 10,
Expand Down
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func TestDefaultClientOptions(t *testing.T) {
assert.Equal(t, 20*time.Second, options.DialerKeepAlive)
assert.Equal(t, 5*time.Second, options.DialerTimeout)
assert.Equal(t, 2, options.RequestRetryCount)
assert.Equal(t, 10*time.Second, options.RequestTimeout)
assert.Equal(t, 30*time.Second, options.RequestTimeout)
assert.Equal(t, 3*time.Second, options.TransportExpectContinueTimeout)
assert.Equal(t, 20*time.Second, options.TransportIdleTimeout)
assert.Equal(t, 10, options.TransportMaxIdleConnections)
Expand Down

0 comments on commit 7ed445c

Please sign in to comment.