for (;;) {
try {
SocketChannel sc = ssc.accept();
ChannelIO cio = (sslContext != null ?
ChannelIOSecure.getInstance(
sc, false /* non-blocking */, sslContext) :
ChannelIO.getInstance(
sc, false /* non-blocking */));
RequestHandler rh = new RequestHandler(cio);
d.register(cio.getSocketChannel(), SelectionKey.OP_READ, rh);
} catch (IOException x) {
x.printStackTrace();
break;
}
}