From 8e853c413a1a9b3574a1796ea64a314b6a5c196a Mon Sep 17 00:00:00 2001 From: Damon Anderson Date: Fri, 11 Sep 2015 18:10:57 -0500 Subject: [PATCH] Changing DAV blob store timeout 5s -> 5m + This is a hotfix for Spring One. We should reevaluate the timeout next week. [Fixes #103237890] Signed-off-by: David Wadden --- ltc/blob_store/dav_blob_store/blob_store.go | 2 +- ltc/blob_store/dav_blob_store/blob_store_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ltc/blob_store/dav_blob_store/blob_store.go b/ltc/blob_store/dav_blob_store/blob_store.go index 630932d3..29d80644 100644 --- a/ltc/blob_store/dav_blob_store/blob_store.go +++ b/ltc/blob_store/dav_blob_store/blob_store.go @@ -28,7 +28,7 @@ func New(config config_package.BlobStoreConfig) *BlobStore { Host: fmt.Sprintf("%s:%s", config.Host, config.Port), User: url.UserPassword(config.Username, config.Password), }, - Client: &http.Client{Timeout: 5 * time.Second}, + Client: &http.Client{Timeout: 5 * time.Minute}, } } diff --git a/ltc/blob_store/dav_blob_store/blob_store_test.go b/ltc/blob_store/dav_blob_store/blob_store_test.go index f79e8f3c..3f010395 100644 --- a/ltc/blob_store/dav_blob_store/blob_store_test.go +++ b/ltc/blob_store/dav_blob_store/blob_store_test.go @@ -53,7 +53,7 @@ var _ = Describe("BlobStore", func() { Describe(".New", func() { It("creates a BlobStore with a timeout of 5 seconds", func() { - Expect(dav_blob_store.New(blobTargetInfo).Client.Timeout).To(Equal(5 * time.Second)) + Expect(dav_blob_store.New(blobTargetInfo).Client.Timeout).To(Equal(5 * time.Minute)) }) })