444722 Fixed order of setReuseAddress call

This commit is contained in:
Greg Wilkins 2014-10-30 11:28:24 +11:00
parent 7cbd3c0488
commit 9189c934d9
1 changed files with 1 additions and 1 deletions

View File

@ -317,8 +317,8 @@ public class ServerConnector extends AbstractNetworkConnector
serverChannel = ServerSocketChannel.open();
InetSocketAddress bindAddress = getHost() == null ? new InetSocketAddress(getPort()) : new InetSocketAddress(getHost(), getPort());
serverChannel.socket().bind(bindAddress, getAcceptQueueSize());
serverChannel.socket().setReuseAddress(getReuseAddress());
serverChannel.socket().bind(bindAddress, getAcceptQueueSize());
_localPort = serverChannel.socket().getLocalPort();
if (_localPort <= 0)