Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
071eb9f6
Commit
071eb9f6
authored
Sep 04, 2018
by
Pengfei Ni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix panic when processing http response
parent
f3b98a08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
azure_backoff.go
pkg/cloudprovider/providers/azure/azure_backoff.go
+6
-1
No files found.
pkg/cloudprovider/providers/azure/azure_backoff.go
View file @
071eb9f6
...
@@ -361,7 +361,12 @@ func processHTTPRetryResponse(resp *http.Response, err error) (bool, error) {
...
@@ -361,7 +361,12 @@ func processHTTPRetryResponse(resp *http.Response, err error) (bool, error) {
}
}
if
shouldRetryHTTPRequest
(
resp
,
err
)
{
if
shouldRetryHTTPRequest
(
resp
,
err
)
{
glog
.
Errorf
(
"processHTTPRetryResponse: backoff failure, will retry, HTTP response=%d, err=%v"
,
resp
.
StatusCode
,
err
)
if
err
!=
nil
{
glog
.
Errorf
(
"processHTTPRetryResponse: backoff failure, will retry, err=%v"
,
err
)
}
else
{
glog
.
Errorf
(
"processHTTPRetryResponse: backoff failure, will retry, HTTP response=%d"
,
resp
.
StatusCode
)
}
// suppress the error object so that backoff process continues
// suppress the error object so that backoff process continues
return
false
,
nil
return
false
,
nil
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment