Skip to content

Commit 4ec0452

Browse files
authored
fix(storage): add unknown host to retriable errors (#10619)
* fix(storage): add unknown host to retriable errors * use DNSError.Temporary
1 parent 2ca203a commit 4ec0452

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎storage/invoke.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ func ShouldRetry(err error) bool {
132132
return true
133133
}
134134
}
135+
case *net.DNSError:
136+
if e.IsTemporary {
137+
return true
138+
}
135139
case interface{ Temporary() bool }:
136140
if e.Temporary() {
137141
return true

0 commit comments

Comments
 (0)