From 17ac181351848fa1047a2c95619ac2792ccfbc41 Mon Sep 17 00:00:00 2001 From: enikey Date: Fri, 19 Dec 2008 11:22:13 +0000 Subject: [PATCH] [BugFix] Slow mouse movement on server-side. Fixed by settings socket option TCP_NODELAY to on (disable Nagle algorithm). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3441 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- java/src/com/tightvnc/vncviewer/RfbProto.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/src/com/tightvnc/vncviewer/RfbProto.java b/java/src/com/tightvnc/vncviewer/RfbProto.java index 5aa2af5e..fcdbbfa1 100644 --- a/java/src/com/tightvnc/vncviewer/RfbProto.java +++ b/java/src/com/tightvnc/vncviewer/RfbProto.java @@ -239,6 +239,7 @@ class RfbProto { if (viewer.socketFactory == null) { sock = new Socket(host, port); + sock.setTcpNoDelay(true); } else { try { Class factoryClass = Class.forName(viewer.socketFactory); -- 2.39.5