Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Looks like body.getStream... returns a new Stream from Chunk bytes. Then the caller should close inputStrem. Do not know if this is always the case.
One place that is affected:
InputStream leak when formatting/copying body (formatXML no longer closes it)
Since TextUtil.formatXML(InputStream, ...) intentionally does not close the provided stream (good), the InputStreams obtained via body.getContentAsStream() must be closed here. Wrap them in try-with-resources to prevent descriptor/memory leaks under load.
Apply this diff:
Beta Was this translation helpful? Give feedback.
All reactions