浏览代码

make sure we actually throw caught execptions in java viewer

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4856 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.2.90
Brian Hinz 12 年前
父节点
当前提交
93464bcc33

+ 1
- 1
java/com/tigervnc/network/SocketDescriptor.java 查看文件

@@ -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 );

+ 1
- 2
java/com/tigervnc/network/TcpListener.java 查看文件

@@ -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

+ 1
- 1
java/com/tigervnc/rfb/CSecurityTLS.java 查看文件

@@ -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 {

正在加载...
取消
保存