Skip to content

Commit

Permalink
[issue_1106][taier-worker] release tcp connect fix #1106 (#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
vainhope authored Aug 7, 2023
1 parent fd043f0 commit 4b44c80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ public class HttpClientUtil {

private static int DEFAULT_RETRY_TIMES = 3;
private static int SLEEP_TIME_MILLI_SECOND = 2000;
private static long HTTPCLIENT_CACHE_TTL_MILL_SECONDS = 60000;
private static long HTTPCLIENT_CACHE_TTL_MINUTES = 5;
private static HttpClient simpleHttpClient = buildHttpClient(new BaseConfig());
private static Cache<String, HttpClient> httpClientCache = CacheBuilder.newBuilder()
.removalListener(new HttpClientRemovalListener())
.expireAfterAccess(HTTPCLIENT_CACHE_TTL_MILL_SECONDS, TimeUnit.MINUTES)
.expireAfterAccess(HTTPCLIENT_CACHE_TTL_MINUTES, TimeUnit.MINUTES)
.build();

private static Charset charset = Charset.forName("UTF-8");
Expand Down

0 comments on commit 4b44c80

Please sign in to comment.