Skip to content

Commit

Permalink
MB-39279 Increase http request timeout to 120sec in planner
Browse files Browse the repository at this point in the history
Change-Id: Iebb7209d6355c77566d18c1858a48e8ae39f74b8
  • Loading branch information
varunv-cb committed May 15, 2020
1 parent 8fe9ec1 commit 73d4e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secondary/planner/proxy.go
Expand Up @@ -1060,7 +1060,7 @@ func getLocalNumReplicas(addr string) (map[common.IndexDefnId]common.Counter, er

func getWithCbauth(url string) (*http.Response, error) {

params := &security.RequestParams{Timeout: time.Duration(10) * time.Second}
params := &security.RequestParams{Timeout: time.Duration(120) * time.Second}
response, err := security.GetWithAuth(url, params)
if err == nil && response.StatusCode != http.StatusOK {
return response, convertError(response)
Expand Down

0 comments on commit 73d4e72

Please sign in to comment.