okhttp / okhttp3 / OkHttpClient / Builder / retryOnConnectionFailure

retryOnConnectionFailure

fun retryOnConnectionFailure(retryOnConnectionFailure: Boolean): OkHttpClient.Builder

Configure this client to retry or not when a connectivity problem is encountered. By default, this client silently recovers from the following problems:

Set this to false to avoid retrying requests when doing so is destructive. In this case the calling application should do its own recovery of connectivity failures.