• Phillip Webb's avatar
    Limit when PortInUseException is thrown · 93f7e2b6
    Phillip Webb authored
    Refactor `PortInUseException` logic to a single place and refine when
    the exception is thrown.
    
    Prior to this commit, we assumed that a `BindException` was only thrown
    when the port was in use. In fact, it's possible that the exception
    could be thrown because the requested address "could not be assigned".
    
    We now only throw a `PortInUserException` if the `BindException` message
    includes the phrase "in use".
    
    Fixes gh-21101
    93f7e2b6
Name
Last commit
Last update
.bomr Loading commit data...
.github Loading commit data...
.mvn Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src/checkstyle Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml 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...
SUPPORT.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...