Skip to content

Commit 7fac0c4

Browse files
authored
---
yaml --- r: 9871 b: refs/heads/master c: 42a9782 h: refs/heads/master i: 9869: f332db9 9867: 3a485a1 9863: ea3c4fb 9855: c36eb4b
1 parent fd278f2 commit 7fac0c4

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c489a280855badb7dfac8f1a5f75ca1950cba86f
2+
refs/heads/master: 42a97823d151b6280d5e2d6f430feb8865eafd17
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: 8f06ce58a2d2825865991e9ba7841a013dccbae1
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/BaseServiceException.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,13 @@ public static boolean isRetryable(Integer code, String reason, boolean idempoten
254254

255255
@InternalApi
256256
public static boolean isRetryable(boolean idempotent, IOException exception) {
257-
boolean exceptionIsRetryable = exception instanceof SocketTimeoutException
258-
|| exception instanceof SocketException
259-
|| (exception instanceof SSLHandshakeException
260-
&& !(exception.getCause() instanceof CertificateException))
261-
|| "insufficient data written".equals(exception.getMessage());
257+
boolean exceptionIsRetryable =
258+
exception instanceof SocketTimeoutException
259+
|| exception instanceof SocketException
260+
|| (exception instanceof SSLHandshakeException
261+
&& !(exception.getCause() instanceof CertificateException))
262+
|| "insufficient data written".equals(exception.getMessage())
263+
|| "Error writing request body to server".equals(exception.getMessage());
262264
return idempotent && exceptionIsRetryable;
263265
}
264266

0 commit comments

Comments
 (0)