Skip to content
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

WebClient failure when sending multipart formdata from a virtual thread #2700

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

tsegismont
Copy link
Contributor

@tsegismont tsegismont commented Jan 16, 2025

Fixes #2696

MultipartFormUpload is created on the Vert.x context that is bound to the request promise.

We should create the queue using the context executor for both the producer and consumer sides.

Otherwise, if there is a large upload and the queue needs to be paused/resumed, the pump method will be invoked on the EventLoop executor bound to this context. And then the IllegalArgumentException is thrown.

MultipartFormUpload is created on the Vert.x context that is bound to the request promise.

We should create the queue using the context executor for both the producer and consumer sides.

Otherwise, if there is a large upload and the queue needs to be paused/resumed, the pump method will be invoked on the EventLoop executor bound to this context. And then the IllegalArgumentException is thrown.

Signed-off-by: Thomas Segismont <[email protected]>
@tsegismont tsegismont requested a review from vietj January 16, 2025 14:19
@vietj vietj added this to the 5.0.0 milestone Jan 16, 2025
@tsegismont tsegismont merged commit 5862b72 into vert-x3:master Jan 16, 2025
7 checks passed
@tsegismont tsegismont deleted the issue/2696 branch January 16, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

WebClient fails when sending multipart formdata from a virtual thread
2 participants