• Andy Wilkinson's avatar
    Defer removal of Connectors until after ServletContext initialization · 145d8d26
    Andy Wilkinson authored
    Previously, we removed the Connectors from Tomcat's Service before
    the Context was started. The removal of the Connectors is required as
    it prevents Tomcat from accepting requests before we're ready to
    handle them.
    
    Part of starting the Context is creating and initializing the
    ServletContext. ServerProperties uses a ServletContextInitializer to
    set the session tracking modes and Tomcat rejects the SSL tracking
    mode if there is no SSL-enabled connector available. With the previous
    arrangement this led to a failure as the Connectors had been removed
    so the SSL-enabled connector could not be found.
    
    This commit updates the embedded Tomcat container to defer the
    removal of the Connectors until after the context has been started
    but still at a point that is before the Connectors themselves would
    have been started.
    
    Closes gh-12058
    145d8d26
Name
Last commit
Last update
..
META-INF Loading commit data...
batch Loading commit data...
cache Loading commit data...
custom-templates Loading commit data...
db Loading commit data...
mustache-templates Loading commit data...
org/springframework/boot/autoconfigure Loading commit data...
session Loading commit data...
templates Loading commit data...
test Loading commit data...
welcome-page Loading commit data...
application-switch-messages.properties Loading commit data...
application.properties Loading commit data...
city.sql Loading commit data...
custom-schema-sample.ldif Loading commit data...
custom-schema.ldif Loading commit data...
data.sql Loading commit data...
early-init-test.xml Loading commit data...
ehcache.xml Loading commit data...
ehcache3.xml Loading commit data...
hazelcast.xml Loading commit data...
infinispan.xml Loading commit data...
ksLoc Loading commit data...
ksLocP Loading commit data...
logback-test.xml Loading commit data...
logging.properties Loading commit data...
schema.ldif Loading commit data...
schema.sql Loading commit data...
switch-messages.properties Loading commit data...
test.jks Loading commit data...
tsLoc Loading commit data...
tsLocP Loading commit data...