Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use JarURLConnection caching defaults
In order to prevent leaks of large amounts of non-heap memory (and potential other efficiency and performance side effects), this commit updates ResourceUtils#useCachesIfNecessary to leave the caching flag to its JVM default value for instances of JarURLConnection. The previous behavior was originally introduced via spring-projectsgh-9316 and spring-projectsgh-13755 to avoid I/O failure during webapp hot reloading in Servlet containers. This is not a popular deployment mode anymore and we have not been able to reproduce the original issue with a Java 17 JVM and Tomcat 10. Closes spring-projectsgh-30955
- Loading branch information