Closed zekronium closed 4 weeks ago
Thanks for this PR. Is there a corresponding issue?
Can you please add a test that does not pass with this change?
cc @vietj
yes I think the request method should not fail synchronously
yes I think the request method should not fail synchronously
Are we resulting then to failing it inside vertx-core
then?
@vietj This is quite key for virtual threads. You think its good?
can you provide a test failing that ? or a stack trace ?
can you provide a test failing that ? or a stack trace ?
I think this naturally fixed itself with the rework of TaskQueue. Can not reproduce it the same way as it was before
ok then I'll close this issue until we have a reproducer
Motivation:
If the client is closed (or other exception is thrown), it wont be handled and instead will be thrown on the context exception handler.
Normally this is fine, but in
VIRTUAL_THREAD
threading mode it causes threads to never be awaken.Note: this technically can be solved by also changing how the
client.request
throws its exceptions and to fail the request promise too, but here it seems more appropriate in my eyes.