mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
automatically retry GET requests when http2 connection lost
This commit is contained in:
parent
e9c9a27c97
commit
332a094e23
@ -1143,7 +1143,7 @@ func (r *Request) request(ctx context.Context, fn func(*http.Request, *http.Resp
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
// For connection errors and apiserver shutdown errors retry.
|
// For connection errors and apiserver shutdown errors retry.
|
||||||
if net.IsConnectionReset(err) || net.IsProbableEOF(err) {
|
if net.IsConnectionReset(err) || net.IsProbableEOF(err) || net.IsHTTP2ConnectionLost(err) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user