Skip to content

Commit

Permalink
disable library retry (#413)
Browse files Browse the repository at this point in the history
Contex:
Within we already manually retry on failure, disable library retry on
connection
There is a bug in okhttp client library that creates an infinite loop on
exceptions
square/okhttp#7530
  • Loading branch information
xinlili-statsig authored Dec 19, 2024
1 parent 5855c96 commit 9e8924b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/com/statsig/sdk/network/HTTPWorker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ internal class HTTPWorker(

init {
val clientBuilder = OkHttpClient.Builder()
clientBuilder.retryOnConnectionFailure(false)

clientBuilder.addInterceptor(
Interceptor {
Expand Down

0 comments on commit 9e8924b

Please sign in to comment.