sanghwa-min commented on code in PR #714:
URL: 
https://github.com/apache/httpcomponents-client/pull/714#discussion_r2306960178


##########
httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java:
##########
@@ -1094,8 +1095,10 @@ public CloseableHttpAsyncClient build() {
             }
             if (evictExpiredConnections || evictIdleConnections) {
                 if (connManagerCopy instanceof ConnPoolControl) {
+                    TimeValue sleepTime = maxIdleTime.divide(10, 
TimeUnit.NANOSECONDS);
+                    sleepTime = sleepTime.compareTo(TimeValue.ofSeconds(1L)) < 
0 ? TimeValue.ofSeconds(1L) : sleepTime;

Review Comment:
   @ok2c Understood. I updated the commit, thank you.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to