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

StreamedFile with PipedInputStream and PipedOutputStream fails in 4.6.3 #11492

Open
fbellomi opened this issue Jan 8, 2025 · 0 comments
Open

Comments

@fbellomi
Copy link

fbellomi commented Jan 8, 2025

Expected Behavior

Using StreamedFile with PipedInputStream and PipedOutputStream as suggested in https://docs.micronaut.io/latest/guide/#transfers works fine in 4.5.x

Actual Behaviour

... but fails in 4.6.3 because PipedInputStream#readSide get bound to a short lived virtual thread and then fails PipedInputStream#checkStateForReceive(), resulting in a truncated stream.

Using @ExecuteOn(IO) does not solve the problem because do not change the (virtual) thread used to read the StreamedFile

Steps To Reproduce

No response

Environment Information

macOs 15.2, Ubuntu 22, Java 21

Example Application

No response

Version

4.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant