File tree 1 file changed +3
-1
lines changed
src/main/java/com/google/firebase/internal
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 21
21
import com .google .common .annotations .VisibleForTesting ;
22
22
23
23
import java .io .IOException ;
24
+ import java .net .SocketTimeoutException ;
24
25
import java .util .concurrent .CancellationException ;
25
26
import java .util .concurrent .CompletableFuture ;
26
27
import java .util .concurrent .ExecutionException ;
@@ -122,7 +123,8 @@ public void cancelled() {
122
123
final SimpleHttpResponse response = responseFuture .get ();
123
124
return new ApacheHttp2Response (response );
124
125
} catch (ExecutionException e ) {
125
- if (e .getCause () instanceof ConnectTimeoutException ) {
126
+ if (e .getCause () instanceof ConnectTimeoutException
127
+ || e .getCause () instanceof SocketTimeoutException ) {
126
128
throw new IOException ("Connection Timeout" , e .getCause ());
127
129
} else if (e .getCause () instanceof HttpHostConnectException ) {
128
130
throw new IOException ("Connection exception in request" , e .getCause ());
You can’t perform that action at this time.
0 commit comments