File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/com/google/firebase/internal Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2121import com .google .common .annotations .VisibleForTesting ;
2222
2323import java .io .IOException ;
24+ import java .net .SocketTimeoutException ;
2425import java .util .concurrent .CancellationException ;
2526import java .util .concurrent .CompletableFuture ;
2627import java .util .concurrent .ExecutionException ;
@@ -122,7 +123,8 @@ public void cancelled() {
122123 final SimpleHttpResponse response = responseFuture .get ();
123124 return new ApacheHttp2Response (response );
124125 } catch (ExecutionException e ) {
125- if (e .getCause () instanceof ConnectTimeoutException ) {
126+ if (e .getCause () instanceof ConnectTimeoutException
127+ || e .getCause () instanceof SocketTimeoutException ) {
126128 throw new IOException ("Connection Timeout" , e .getCause ());
127129 } else if (e .getCause () instanceof HttpHostConnectException ) {
128130 throw new IOException ("Connection exception in request" , e .getCause ());
You can’t perform that action at this time.
0 commit comments