From 7ed445c2172a7d06ba5e328522c700df9999883b Mon Sep 17 00:00:00 2001 From: mrz1836 Date: Tue, 16 Nov 2021 08:35:08 -0500 Subject: [PATCH] Raised the default timeout from 10 seconds to 30 seconds Closes #43 --- client.go | 2 +- client_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index c4a7f07..92d0cf5 100644 --- a/client.go +++ b/client.go @@ -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, diff --git a/client_test.go b/client_test.go index 4c89aaf..6c9f56c 100644 --- a/client_test.go +++ b/client_test.go @@ -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)