Disable epoll whilst we try to replicate some issues

This commit is contained in:
md_5 2014-06-29 09:22:34 +10:00
parent a668da76d0
commit bb69af5cd0

View File

@ -80,7 +80,7 @@ public class PipelineUtils
static
{
if ( !PlatformDependent.isWindows() )
if ( !PlatformDependent.isWindows() && Boolean.parseBoolean( System.getProperty( "bungee.epoll", "false" ) ) )
{
ProxyServer.getInstance().getLogger().info( "Not on Windows, attempting to use enhanced EpollEventLoop" );
EpollEventLoopGroup testGroup = null;
@ -116,7 +116,7 @@ public class PipelineUtils
{
return epoll ? EpollSocketChannel.class : NioSocketChannel.class;
}
public static Class<? extends Channel> getDatagramChannel()
{
return epoll ? EpollDatagramChannel.class : NioDatagramChannel.class;