Ho All, I have a odd issue with okhttp version 4.9.0. It seems to increase the response time ( client.newCall(request).execute() ). If I increase the connectTimeout to 5 seconds the response time increases to 6 if I increase it to 15 seconds the response time increases to 16 seconds. Below is how I am using the builder.
client = new OkHttpClient.Builder() .connectionPool(new ConnectionPool(2, 2, TimeUnit.SECONDS)) .cache(null) .connectTimeout(2, TimeUnit.SECONDS) .readTimeout(25, TimeUnit.SECONDS).build();
Thanks for any hints!