File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
sentry-system-test-support/src/main/kotlin/io/sentry/systemtest/util Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import okhttp3.RequestBody
1010import okhttp3.RequestBody.Companion.toRequestBody
1111import okhttp3.Response
1212import org.slf4j.LoggerFactory
13+ import java.util.concurrent.TimeUnit
1314
1415open class LoggingInsecureRestClient {
1516 val logger = LoggerFactory .getLogger(LoggingInsecureRestClient ::class .java)
@@ -55,6 +56,10 @@ open class LoggingInsecureRestClient {
5556
5657 protected fun client (): OkHttpClient {
5758 return OkHttpClient .Builder ()
59+ .callTimeout(30 , TimeUnit .SECONDS )
60+ .connectTimeout(30 , TimeUnit .SECONDS )
61+ .readTimeout(30 , TimeUnit .SECONDS )
62+ .writeTimeout(30 , TimeUnit .SECONDS )
5863 .build()
5964 }
6065
You can’t perform that action at this time.
0 commit comments