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:
parent
97231caaf2
commit
ac4699a8c9
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue
Block a user