• Andy Wilkinson's avatar
    Defer Tomcat’s session ID generator initialization until it’s needed · f0ce0e3e
    Andy Wilkinson authored
    By default, Tomcat forces the generation of a session id during startup
    to ensure that a SecureRandom instance has been initialized. When there
    is a lack of entropy (as is often the case on a newly booted VPS, for
    example) this can block for a long time (several minutes in some cases)
    causing users to incorrectly believe that their application has hung
    during startup. This is particularly problematic for applications that
    don't use HTTP sessions as they are paying the startup cost for no
    benefit.
    
    This commit address the problem by configuring a custom
    SessionIdGenerator that does not initialize itself during startup.
    Instead, the initialization is now deferred until a request for a
    session id is made.
    
    Closes gh-6174
    f0ce0e3e
Name
Last commit
Last update
.github Loading commit data...
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...