• Andy Wilkinson's avatar
    Rework Jetty startup so connectors are only started once · bd577f15
    Andy Wilkinson authored
    Previously the server was started to make the ServletContext
    available, then, to prevent requests from being handled before the
    application context had been started, the connectors were stopped.
    Once application context startup had completed, the connectors were
    then started again. In addition to being somewhat inefficient, this
    caused problems on FreeBSD where stopping the connector didn't free
    up the port quickly enough for the subsequent start to then be able
    to bind to it.
    
    This commit updates the Jetty startup logic to be closer to the logic
    that's used for Tomcat. Before the server is started, the configured
    connectors are cached and then removed. The server is then started
    without any connectors. Once application context startup has
    completed, the connectors are reinstated and started.
    
    Fixes #968
    bd577f15
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies 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-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...