To refactor BodyPartParser
of Multipart
in order to avoid StackOverflowError easily
#11347
yousuketto
started this conversation in
General
Replies: 1 comment 1 reply
-
@yousuketto Feel free to submit a pull request with your suggestion, so we will see if tests pass and we can discuss further. Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current code uses recaursive call so StackOverflowError is occurred. We need to estimate
maxMemoryBuffer
size in order to avoid the error.#10590
I guess refactoring the code to use tailrec or loop would avoid the error without estimating the size of
maxMemoryBuffer
.I think it can be done with a change like this.
yousuketto@db11977
Beta Was this translation helpful? Give feedback.
All reactions