forked from j62/ctbrec
Reduce HTTP connection keep-alive to 1 minute
This commit is contained in:
parent
fa3512621c
commit
f79b5eddc5
|
@ -46,7 +46,7 @@ import okhttp3.WebSocketListener;
|
||||||
public abstract class HttpClient {
|
public abstract class HttpClient {
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(HttpClient.class);
|
private static final Logger LOG = LoggerFactory.getLogger(HttpClient.class);
|
||||||
|
|
||||||
private static final ConnectionPool GLOBAL_HTTP_CONN_POOL = new ConnectionPool(20, 2, TimeUnit.MINUTES);
|
private static final ConnectionPool GLOBAL_HTTP_CONN_POOL = new ConnectionPool(20, 1, TimeUnit.MINUTES);
|
||||||
|
|
||||||
protected OkHttpClient client;
|
protected OkHttpClient client;
|
||||||
protected CookieJarImpl cookieJar = new CookieJarImpl();
|
protected CookieJarImpl cookieJar = new CookieJarImpl();
|
||||||
|
|
Loading…
Reference in New Issue