lethinker commented on PR #694: URL: https://github.com/apache/httpcomponents-client/pull/694#issuecomment-3164182716
@ok2c @rschmitt can you help me with the problem when I use the httpAsyncClient( httpclient 5.4.3 、jdk 21) First, I set a 100-second sleep on the server side to ensure that no response is returned within 100 seconds. Second I use the `RequestConfig.setResponseTimeout(Timeout.ofMilliseconds(50))` to set the response timeout value on the client side. I have modified the timeout multiple times and obtained the following results. `[async]failed is 1 MILLISECONDS, time usage is 1033` `[async]failed is 10 MILLISECONDS, time usage is 1010` `[async]failed is 500 MILLISECONDS, time usage is 1015` `[async]failed is 1000 MILLISECONDS, time usage is 1013` This is the expected value. `[async]failed is 1020 MILLISECONDS, time usage is 2019` ...... **It seems that the effected ResponseTimeout is being rounded up to the nearest second, and milliseconds are not taking effect.** In addition, I used a synchronous httpclient, which works well. I set the ResponseTimeout = 50ms. `[sync]failed is Read timed out, time usage is 63` -- 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