static { // // 使用默认的 cacheThreadPool client.setTimeout(150000); client.setConnectTimeout(150000); client.setMaxConnections(20); client.setResponseTimeout(200000); }
{ HTTP_CLIENT.setMaxConnections(4); HTTP_CLIENT.setMaxRetriesAndTimeout(3, 10); }