config.setReadExecutor(executorService);
config.setSocketFactory(ServerSocketFactory.getDefault());
config.setBacklog(50);
config.setConnectionHandler(this);
server = new ProtocolServer(config);
server.start();
} catch (Exception e) {
throw new StartException("Failed to start server socket", e);
}
}