-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delay between RequestTimeout and ListenableFuture's completion #1686
Comments
AHC uses Netty's HashedWheelTimer to trade accuracy for the ability to schedule tens of thousands of event. AHC currently uses the default settings, ie 100ms tick duration, meaning you will get timeouts rounded up to the closest 100ms (after first execution once all classes are properly loaded). If you feel like you need a lower accuracy, feel free to contribute. |
Thanks for your reply. Right now, I'll just limit the time on Future#get(). |
Two questions here:
Thanks. |
Hi, I find the delay between RequestTimeout and the time corresponding future completes by a timeout exception is quite long. Below is my test.
version:
test code:
result:
I tried many times, and the future complete time is always much longer than 20ms. It doesn't matter if I use a pre-created AsyncHttpClient or create a new one on each request.
log:
The text was updated successfully, but these errors were encountered: