Skip to content

Commit

Permalink
add evict timeout to logx connections (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeopt committed Jun 8, 2023
1 parent 7fc043c commit 8c94ab6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public AsyncEventHandler(int queueCapacity,
.withMaxTotalConnections(maxConnections)
.withMaxPerRoute(connectionsPerRoute)
.withValidateAfterInactivity(validateAfter)
// infrequent event discards observed. staled connections force-closed after a long idle time.
.withEvictIdleConnections(1L, TimeUnit.MINUTES)
.build();

this.workerExecutor = new ThreadPoolExecutor(numWorkers, numWorkers,
Expand Down

0 comments on commit 8c94ab6

Please sign in to comment.