From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUVIN-0000Mb-Ub for qemu-devel@nongnu.org; Thu, 18 Sep 2014 02:34:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUVII-0000Mz-W8 for qemu-devel@nongnu.org; Thu, 18 Sep 2014 02:34:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUVII-0000MY-Oo for qemu-devel@nongnu.org; Thu, 18 Sep 2014 02:34:18 -0400 From: Gerd Hoffmann Date: Thu, 18 Sep 2014 08:33:55 +0200 Message-Id: <1411022036-17668-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1411022036-17668-1-git-send-email-kraxel@redhat.com> References: <1411022036-17668-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 1/2] ui/vnc: set TCP_NODELAY List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Lieven , Gerd Hoffmann , Anthony Liguori From: Peter Lieven we currently have the Nagle algorithm enabled for all outgoing VNC updates. This may delay sensitive updates as mouse movements or typing in the console. As we currently prepare all data in a buffer and then send as much as we can disabling the Nagle algorithm should not cause big trouble. Well established VNC servers like TightVNC set TCP_NODELAY as well. A regular framebuffer update request generates exactly one framebuffer update which should be pushed out as fast as possible. Signed-off-by: Peter Lieven Signed-off-by: Gerd Hoffmann --- ui/vnc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/vnc.c b/ui/vnc.c index f8d9b7d..0fe6eff 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -2914,6 +2914,7 @@ static void vnc_listen_read(void *opaque, bool websocket) } if (csock != -1) { + socket_set_nodelay(csock); vnc_connect(vs, csock, false, websocket); } } -- 1.8.3.1