Skip to content

Commit 99661ba

Browse files
authored
Add stream error patterns to retryable errors (#686)
Treat HTTP/2 stream errors as retryable failures. These errors indicate transient network or protocol issues that often resolve on subsequent attempts. Adding stream error, INTERNAL_ERROR, and PROTOCOL_ERROR patterns prevents premature failure when encountering temporary connection problems. Signed-off-by: Eric Curtin <eric.curtin@docker.com>
1 parent 71cc4c6 commit 99661ba

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmd/cli/desktop/desktop.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ func isRetryableError(err error) bool {
177177
"no route to host",
178178
"network is unreachable",
179179
"i/o timeout",
180+
"stream error",
181+
"internal_error",
182+
"protocol_error",
180183
}
181184

182185
for _, pattern := range retryablePatterns {

0 commit comments

Comments
 (0)