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

WebFlux: multipart requests hang sometimes #28963

Closed
frost13it opened this issue Aug 15, 2022 · 2 comments
Closed

WebFlux: multipart requests hang sometimes #28963

frost13it opened this issue Aug 15, 2022 · 2 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@frost13it
Copy link

Sometimes multipart/form-data requests containing a file with size of less than a megabyte hang, they do not reach controller's method.
I have a sample project that reproduces the issue on Spring Boot 2.7.2.
The test the project sends requests with WebTestClient. Using the java.net.http client gives the same result.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Aug 15, 2022
@frost13it
Copy link
Author

Also I have a workaround: adding an empty part after the file seems to prevent requests from hanging.

@poutsma poutsma self-assigned this Aug 16, 2022
@poutsma poutsma added in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Aug 30, 2022
@poutsma poutsma added this to the 5.3.23 milestone Aug 30, 2022
@poutsma
Copy link
Contributor

poutsma commented Aug 30, 2022

Thanks for providing a sample, that made this a lot easier to fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants