qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 0/2] vnc patch queue
@ 2014-09-18  6:33 Gerd Hoffmann
  2014-09-18  6:33 ` [Qemu-devel] [PULL 1/2] ui/vnc: set TCP_NODELAY Gerd Hoffmann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gerd Hoffmann @ 2014-09-18  6:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

  Hi,

Two little vnc patches.

please pull,
  Gerd

The following changes since commit e4d50d47a9eb15f42bdd561803a29a4d7c3eb8ec:

  qemu-char: Rename register_char_driver_qapi() to register_char_driver() (2014-09-16 23:36:32 +0100)

are available in the git repository at:

  git://git.kraxel.org/qemu tags/pull-vnc-20140918-1

for you to fetch changes up to 9d64fab42274fb50a39bab184f79d0239596ba4a:

  vnc-tls: Clean up dead store in vnc_set_x509_credential() (2014-09-18 08:01:53 +0200)

----------------------------------------------------------------
vnc: set TCP_NODELAY, cleanup in tlc code

----------------------------------------------------------------
Markus Armbruster (1):
      vnc-tls: Clean up dead store in vnc_set_x509_credential()

Peter Lieven (1):
      ui/vnc: set TCP_NODELAY

 ui/vnc-tls.c | 2 --
 ui/vnc.c     | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

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

* [Qemu-devel] [PULL 1/2] ui/vnc: set TCP_NODELAY
  2014-09-18  6:33 [Qemu-devel] [PULL 0/2] vnc patch queue Gerd Hoffmann
@ 2014-09-18  6:33 ` Gerd Hoffmann
  2014-09-18  6:33 ` [Qemu-devel] [PULL 2/2] vnc-tls: Clean up dead store in vnc_set_x509_credential() Gerd Hoffmann
  2014-09-18 18:30 ` [Qemu-devel] [PULL 0/2] vnc patch queue Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Gerd Hoffmann @ 2014-09-18  6:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Lieven, Gerd Hoffmann, Anthony Liguori

From: Peter Lieven <pl@kamp.de>

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>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 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

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

* [Qemu-devel] [PULL 2/2] vnc-tls: Clean up dead store in vnc_set_x509_credential()
  2014-09-18  6:33 [Qemu-devel] [PULL 0/2] vnc patch queue Gerd Hoffmann
  2014-09-18  6:33 ` [Qemu-devel] [PULL 1/2] ui/vnc: set TCP_NODELAY Gerd Hoffmann
@ 2014-09-18  6:33 ` Gerd Hoffmann
  2014-09-18 18:30 ` [Qemu-devel] [PULL 0/2] vnc patch queue Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Gerd Hoffmann @ 2014-09-18  6:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Markus Armbruster, Anthony Liguori, Gerd Hoffmann

From: Markus Armbruster <armbru@redhat.com>

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 ui/vnc-tls.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/ui/vnc-tls.c b/ui/vnc-tls.c
index 6392326..0f59f9b 100644
--- a/ui/vnc-tls.c
+++ b/ui/vnc-tls.c
@@ -444,8 +444,6 @@ static int vnc_set_x509_credential(VncDisplay *vd,
     struct stat sb;
 
     g_free(*cred);
-    *cred = NULL;
-
     *cred = g_malloc(strlen(certdir) + strlen(filename) + 2);
 
     strcpy(*cred, certdir);
-- 
1.8.3.1

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

* Re: [Qemu-devel] [PULL 0/2] vnc patch queue
  2014-09-18  6:33 [Qemu-devel] [PULL 0/2] vnc patch queue Gerd Hoffmann
  2014-09-18  6:33 ` [Qemu-devel] [PULL 1/2] ui/vnc: set TCP_NODELAY Gerd Hoffmann
  2014-09-18  6:33 ` [Qemu-devel] [PULL 2/2] vnc-tls: Clean up dead store in vnc_set_x509_credential() Gerd Hoffmann
@ 2014-09-18 18:30 ` Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2014-09-18 18:30 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: QEMU Developers

On 17 September 2014 23:33, Gerd Hoffmann <kraxel@redhat.com> wrote:
>   Hi,
>
> Two little vnc patches.
>
> please pull,
>   Gerd
>
> The following changes since commit e4d50d47a9eb15f42bdd561803a29a4d7c3eb8ec:
>
>   qemu-char: Rename register_char_driver_qapi() to register_char_driver() (2014-09-16 23:36:32 +0100)
>
> are available in the git repository at:
>
>   git://git.kraxel.org/qemu tags/pull-vnc-20140918-1
>
> for you to fetch changes up to 9d64fab42274fb50a39bab184f79d0239596ba4a:
>
>   vnc-tls: Clean up dead store in vnc_set_x509_credential() (2014-09-18 08:01:53 +0200)
>
> ----------------------------------------------------------------
> vnc: set TCP_NODELAY, cleanup in tlc code
>
> ----------------------------------------------------------------
> Markus Armbruster (1):
>       vnc-tls: Clean up dead store in vnc_set_x509_credential()
>
> Peter Lieven (1):
>       ui/vnc: set TCP_NODELAY
>
>  ui/vnc-tls.c | 2 --
>  ui/vnc.c     | 1 +
>  2 files changed, 1 insertion(+), 2 deletions(-)

Applied, thanks.

-- PMM

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

end of thread, other threads:[~2014-09-18 18:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-18  6:33 [Qemu-devel] [PULL 0/2] vnc patch queue Gerd Hoffmann
2014-09-18  6:33 ` [Qemu-devel] [PULL 1/2] ui/vnc: set TCP_NODELAY Gerd Hoffmann
2014-09-18  6:33 ` [Qemu-devel] [PULL 2/2] vnc-tls: Clean up dead store in vnc_set_x509_credential() Gerd Hoffmann
2014-09-18 18:30 ` [Qemu-devel] [PULL 0/2] vnc patch queue Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).