public class OkHttpUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static okhttp3.Response |
execute(okhttp3.Request request,
okhttp3.OkHttpClient okClient)
There is a bug on okHttp library,
which causes java.net.SocketTimeoutException from HTTP/2 connection to leave dead okhttp
clients in pool.
|
public static okhttp3.Response execute(okhttp3.Request request,
okhttp3.OkHttpClient okClient)
throws java.io.IOException
request - - request to sendokClient - - client libraryjava.io.IOException