Skip to content

Commit

Permalink
Updated timeout to be longer
Browse files Browse the repository at this point in the history
  • Loading branch information
lonelycode committed Dec 1, 2016
1 parent 8869ed6 commit f6d68b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api_definition_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func RegisterNodeWithDashboard(endpoint string, secret string) error {
newRequest.Header.Add("authorization", secret)

c := &http.Client{
Timeout: 5 * time.Second,
Timeout: 10 * time.Second,
}
response, reqErr := c.Do(newRequest)

Expand Down Expand Up @@ -352,7 +352,7 @@ func SendHeartBeat(endpoint string, secret string) error {
newRequest.Header.Add("x-tyk-nonce", ServiceNonce)

c := &http.Client{
Timeout: 5 * time.Second,
Timeout: 10 * time.Second,
}
response, reqErr := c.Do(newRequest)
defer response.Body.Close()
Expand Down
2 changes: 1 addition & 1 deletion policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func LoadPoliciesFromDashboard(endpoint string, secret string, allowExplicit boo
"prefix": "policy",
}).Info("Mutex lock acquired... calling")
c := &http.Client{
Timeout: 5 * time.Second,
Timeout: 10 * time.Second,
}

log.WithFields(logrus.Fields{
Expand Down

0 comments on commit f6d68b1

Please sign in to comment.