git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4856 3789f03b-4d11-0410-bbf8-ca57d06f2519tags/v1.2.90
@@ -185,7 +185,7 @@ public class SocketDescriptor extends SocketChannel | |||
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 ); |
@@ -116,8 +116,7 @@ public class TcpListener extends SocketListener { | |||
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 |
@@ -128,7 +128,7 @@ public class CSecurityTLS extends CSecurity { | |||
try { | |||
manager = new SSLEngineManager(engine, is, os); | |||
} catch(java.lang.Exception e) { | |||
System.out.println(e.toString()); | |||
throw new Exception(e.toString()); | |||
} | |||
try { |