You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running some benchmarks on spring-boot-sample-web-handlebars demo application then running lsof command line tool shows a lot of template files opened.
Sébastien Deleuze, you could also FileCopyUtils.copyToString there, since that one does close the stream eventually. StreamUtils has been introduced as a kind of mirror class that explicitly does not close the stream for each of the operations.
Sébastien Deleuze opened SPR-13445 and commented
Running some benchmarks on spring-boot-sample-web-handlebars demo application then running
lsof
command line tool shows a lot of template files opened.ScriptTemplateView#getTemplate()
should close the templateInputStream
properly, since according to its Javadoc,StreamUtils#copyToString
leaves the stream open when done.Affects: 4.2.1
Referenced from: commits ff02ad4
The text was updated successfully, but these errors were encountered: