channel.configureBlocking(false);
selector = Selector.open();
} catch (java.io.IOException e) {
- System.out.println(e.toString());
+ throw new Exception(e.toString());
}
try {
channel.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE );
return null;
}
} catch (IOException e) {
- //throw SocketException("unable to accept new connection", errorNumber);
- System.out.println(e.toString());
+ throw new SocketException("unable to accept new connection: "+e.toString());
}
// Disable Nagle's algorithm, to reduce latency
try {
manager = new SSLEngineManager(engine, is, os);
} catch(java.lang.Exception e) {
- System.out.println(e.toString());
+ throw new Exception(e.toString());
}
try {