TaskExecutors.IO is not honored with Server-Sent Event when client is disconnected (blocking netty event loop) #11541
Labels
status: under consideration
The issue is being considered, but has not been accepted yet
Expected Behavior
The
@ExecuteOn(TaskExecutors.IO)
annotation should be honored even in the case a Server-Sent Event Flux is terminated proactively by Micronaut (i.e., when client is disconnected)Actual Behaviour
Using Server-Sent-Event, when the client disconnects, then the
Flux
is terminated by Micronaut, anydoFinally
operation will be executed by the netty event loop even if the method is annotated by@ExecuteOn(TaskExecutors.IO)
.As the method is annotated as blocking I would expect the flux to be published on io-executors before being competed.
Steps To Reproduce
Reproducer
http://localhost:8080/api/v1/test/sse
)logs:
When the Flux is completed by the emitter:
logs:
Environment Information
Example Application
No response
Version
4.7.3
The text was updated successfully, but these errors were encountered: