You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like there is some race condition in some cases when setting a timeout on http request, consider the following example:
HttpClient client = vertx.createHttpClient(
new HttpClientOptions(options).setProtocolVersion(HttpVersion.HTTP_2));
RequestOptions options = new RequestOptions().setTimeout(10);
return client
.request(options)
.onComplete(...);
There are cases in which onCompletion handler will never be called.
When timeout is set, there is a background thread that checks whether the timeout has exceeded and if it does it sets reset variable to timeOutException:
Version
4.5.4
Context
It seems like there is some race condition in some cases when setting a timeout on http request, consider the following example:
There are cases in which onCompletion handler will never be called.
When timeout is set, there is a background thread that checks whether the timeout has exceeded and if it does it sets reset variable to timeOutException:
If the timeout occurs after this code:
reset variable will be not null and the future will never complete:
I saw that there are some fixes for it for vert.x 5 release, is it possible to have a fix for 4.5.x as well?
The text was updated successfully, but these errors were encountered: