Add error 35 to curl retryables.
Merge https://chromium-review.googlesource.com/#/c/185884
to the release branch for R33.
BUG=chromium:334349
TEST=Merge of functional code.
Change-Id: I9f4c1b140c475d67c4ec0a30ea10bd0ad282d3f5
Reviewed-on: https://chromium-review.googlesource.com/186392
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Peter Mayo <petermayo@chromium.org>
diff --git a/lib/cros_build_lib.py b/lib/cros_build_lib.py
index 7f66ffa..dad273d 100644
--- a/lib/cros_build_lib.py
+++ b/lib/cros_build_lib.py
@@ -1117,9 +1117,11 @@
# exact specifics of each).
# Note we allow 22 to deal w/ 500's- they're thrown by google storage
# occasionally.
+ # Note we allow 35 to deal w/ Unknown SSL Protocol error, thrown by
+ # google storage occasionally.
# Finally, we do not use curl's --retry option since it generally doesn't
# actually retry anything; code 18 for example, it will not retry on.
- retriable_exits = frozenset([5, 6, 7, 15, 18, 22, 26, 28, 52, 56])
+ retriable_exits = frozenset([5, 6, 7, 15, 18, 22, 26, 28, 35, 52, 56])
try:
return RunCommandWithRetries(5, cmd, sleep=3, retry_on=retriable_exits,
**kwargs)