String prefix = (sslContext == null ? "http" : "https") + "-Listener I/O dispatcher";
ioReactor = new DefaultListeningIOReactor(
NHttpConfiguration.getInstance().getServerIOWorkers(),
new NativeThreadFactory(new ThreadGroup(prefix + " thread group"), prefix), params);
ioReactor.setExceptionHandler(new IOReactorExceptionHandler() {
public boolean handle(IOException ioException) {
log.warn("System may be unstable: IOReactor encountered a checked exception : "
+ ioException.getMessage(), ioException);
return true;
}