Closed thomaslee closed 3 years ago
@thomaslee Thanks for commiting. I've myself never returned InputStreams from a Route. Is it conceivable that the serializer handling the inputstream would be responsible for closing the stream?
We ran into this today, so I created #1121, which incorporates this feedback.
Howdy -- we ran into a situation where resources could be leaked when returning
InputStream
s fromRoute.handle()
. Proposed patch below, happy to hook up tests if the approach looks reasonable.