File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
bucketeer/src/main/kotlin/io/bucketeer/sdk/android/internal/remote Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ internal class ApiClientImpl(
4040 .Builder ()
4141 .addNetworkInterceptor(FixJsonContentTypeInterceptor ())
4242 .callTimeout(defaultRequestTimeoutMillis, TimeUnit .MILLISECONDS )
43+ .connectTimeout(defaultRequestTimeoutMillis, TimeUnit .MILLISECONDS )
44+ .readTimeout(defaultRequestTimeoutMillis, TimeUnit .MILLISECONDS )
45+ .writeTimeout(defaultRequestTimeoutMillis, TimeUnit .MILLISECONDS )
4346 .build()
4447
4548 private val errorResponseJsonAdapter: JsonAdapter <ErrorResponse > by lazy {
@@ -81,6 +84,9 @@ internal class ApiClientImpl(
8184 client
8285 .newBuilder()
8386 .callTimeout(timeoutMillis, TimeUnit .MILLISECONDS )
87+ .connectTimeout(timeoutMillis, TimeUnit .MILLISECONDS )
88+ .readTimeout(timeoutMillis, TimeUnit .MILLISECONDS )
89+ .writeTimeout(timeoutMillis, TimeUnit .MILLISECONDS )
8490 .build()
8591 }
8692
You can’t perform that action at this time.
0 commit comments