Added SO_REUSEADDR socket option to TCP server, so it can restart without having to wait for a TCP connection to finish closing

This commit is contained in:
nathan 2014-09-22 23:58:45 +02:00
parent 97231caaf2
commit ac4699a8c9

View File

@ -169,6 +169,7 @@ public class Server extends EndPointServer {
this.tcpBootstrap.group(boss, worker)
.option(ChannelOption.SO_BACKLOG, backlogConnectionCount)
.option(ChannelOption.SO_REUSEADDR, true)
.childHandler(new RegistrationRemoteHandlerServerTCP(this.name,
this.registrationWrapper,
this.serializationManager));