444722 Fixed order of setReuseAddress call
This commit is contained in:
parent
7cbd3c0488
commit
9189c934d9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue