force to reuse address in JMX RMI ServerSocket

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
Ludovic Orban 2020-05-08 14:45:07 +02:00
parent 43cc48d003
commit aae162ca87
1 changed files with 1 additions and 0 deletions

View File

@ -243,6 +243,7 @@ public class ConnectorServer extends AbstractLifeCycle
if (_sslContextFactory == null)
{
ServerSocket server = new ServerSocket();
server.setReuseAddress(true);
server.bind(new InetSocketAddress(address, port));
return server;
}