Fixes gh-31217. Delete temp files after multipart exchange
Now temporary files removed as expected and we do not have gigabytes of data stored in temp folder after multipart exchange.
Actual fix is only in DefaultParts.java All other changes - cleaning temp data after test runs
p.s. @poutsma pull request is for 6.1.x as per assigned milestone
Comment From: poutsma
I thank you for submitting a PR, and I appreciate the help with this issue.
However, by removing the blockingOperation
calls, expensive blocking file operations will be scheduled on a non-blocking thread, which would introduce serious performance problems. So despite the fact that this PR resolves #31217, I am afraid that we need to reject it, as merging it would introduce new issues.