All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCHv2] ui/vnc: set TCP_NODELAY
@ 2014-09-05 20:07 Peter Lieven
  2014-09-08  6:36 ` Gerd Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Lieven @ 2014-09-05 20:07 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Peter Lieven, kraxel

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 <pl@kamp.de>
---
v1->v2: use socket_set_nodelay (Peter)

 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.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCHv2] ui/vnc: set TCP_NODELAY
  2014-09-05 20:07 [Qemu-devel] [PATCHv2] ui/vnc: set TCP_NODELAY Peter Lieven
@ 2014-09-08  6:36 ` Gerd Hoffmann
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2014-09-08  6:36 UTC (permalink / raw)
  To: Peter Lieven; +Cc: peter.maydell, qemu-devel

 Hi,

>      if (csock != -1) {
> +        socket_set_nodelay(csock);
>          vnc_connect(vs, csock, false, websocket);

Added to vnc patch queue.

thanks,
  Gerd

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-08  6:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-05 20:07 [Qemu-devel] [PATCHv2] ui/vnc: set TCP_NODELAY Peter Lieven
2014-09-08  6:36 ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.