diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java b/src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java index e273c851feea75..507dca9a15ad3b 100644 --- a/src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java +++ b/src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java @@ -200,7 +200,7 @@ private static boolean shouldEnableRemoteDownloader(RemoteOptions options) { || status == HttpResponseStatus.GATEWAY_TIMEOUT.code(); } else if (e instanceof IOException) { String msg = Ascii.toLowerCase(e.getMessage()); - if (msg.contains("connection reset by peer")) { + if (msg.contains("connection reset")) { retry = true; } else if (msg.contains("operation timed out")) { retry = true;