Quickly test SO_REUSEADDR
This commit is contained in:
parent
fbb2f695b0
commit
348457f613
@ -21,6 +21,7 @@ import io.netty.channel.Channel;
|
|||||||
import io.netty.channel.ChannelException;
|
import io.netty.channel.ChannelException;
|
||||||
import io.netty.channel.ChannelFuture;
|
import io.netty.channel.ChannelFuture;
|
||||||
import io.netty.channel.ChannelFutureListener;
|
import io.netty.channel.ChannelFutureListener;
|
||||||
|
import io.netty.channel.ChannelOption;
|
||||||
import io.netty.channel.EventLoopGroup;
|
import io.netty.channel.EventLoopGroup;
|
||||||
import io.netty.util.ResourceLeakDetector;
|
import io.netty.util.ResourceLeakDetector;
|
||||||
import net.md_5.bungee.conf.Configuration;
|
import net.md_5.bungee.conf.Configuration;
|
||||||
@ -257,6 +258,7 @@ public class BungeeCord extends ProxyServer
|
|||||||
};
|
};
|
||||||
new ServerBootstrap()
|
new ServerBootstrap()
|
||||||
.channel( PipelineUtils.getServerChannel() )
|
.channel( PipelineUtils.getServerChannel() )
|
||||||
|
.option( ChannelOption.SO_REUSEADDR, true )
|
||||||
.childAttr( PipelineUtils.LISTENER, info )
|
.childAttr( PipelineUtils.LISTENER, info )
|
||||||
.childHandler( PipelineUtils.SERVER_CHILD )
|
.childHandler( PipelineUtils.SERVER_CHILD )
|
||||||
.group( eventLoops )
|
.group( eventLoops )
|
||||||
|
Loading…
Reference in New Issue
Block a user