Merge pull request #5797 from joewitt/jetty-9.4.x
Issue #5794 ensuring serverChannel is closed in the event of a failed bind to ensure proper resources are cleaned
This commit is contained in:
commit
db68a313cb
|
@ -346,6 +346,14 @@ public class ServerConnector extends AbstractNetworkConnector
|
|||
}
|
||||
catch (BindException e)
|
||||
{
|
||||
try
|
||||
{
|
||||
serverChannel.close();
|
||||
}
|
||||
catch (IOException ioe)
|
||||
{
|
||||
LOG.warn(ioe);
|
||||
}
|
||||
throw new IOException("Failed to bind to " + bindAddress, e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue