Mercurial > hg > Applications > TreeVNC
changeset 623:120a31960494
add some println message
author | ryokka |
---|---|
date | Fri, 06 Mar 2020 18:58:08 +0900 |
parents | e75a536a65c9 |
children | 15deaf7c005b |
files | Todo.txt src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Todo.txt Mon Feb 24 16:21:20 2020 +0900 +++ b/Todo.txt Fri Mar 06 18:58:08 2020 +0900 @@ -1,6 +1,6 @@ Sun Feb 23 07:15:03 JST 2020 - IPv4/Pv6に二つ multicast socket を作る + IPv4/Pv6に二つ multicast socket を作る ←やらないほうがいい multicast queue で送信する 番号付けるべきか? (drop rate が見れる)
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Mon Feb 24 16:21:20 2020 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Fri Mar 06 18:58:08 2020 +0900 @@ -155,11 +155,14 @@ } failure = 0; } catch (TransportException e) { - System.out.println(e.getMessage()); - System.out.println(e.getCause().getClass().getSimpleName()); + // System.out.println(e.getMessage()); + // System.out.println(e.getCause().getClass().getSimpleName()); if (e.getCause().getClass().getSimpleName().equals("SocketTimeoutException")) { sendFrameBufferUpdateRequest(); - if (failure++ > 10) stopTask(); + if (failure++ > 100) { + System.out.println("too many timeout"); + stopTask(); + } continue; } logger.severe("Close session : ReceiverTask : " + e.getMessage()); @@ -334,6 +337,7 @@ // keep full frame buffer for multi screen renderer = repaintController.createRenderer(reader, rect.width, rect.height, context.getPixelFormat()); } + System.out.println("VNC Server change from " +rfb.getSharingId()+" to " +id+ " myid = " +rfb.getId()); rfb.setSharingId(id); if (rfb.hasViewer()){ System.out.println("setscreenparameter");