qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Marc <sibson@gmail.com>
Cc: Michael Tokarev <mjt@tls.msk.ru>,
	758881@bugs.debian.org, qemu-devel <qemu-devel@nongnu.org>,
	Gonglei <arei.gonglei@huawei.com>,
	Gabriele Giacone <1o5g4r8o@gmail.com>,
	Marc Sibson <sibson+vncdotool@gmail.com>
Subject: Re: [Qemu-devel] Bug#758881: [bisected] VNC server can't get all sent chars correctly
Date: Tue, 26 Aug 2014 07:40:25 +0200	[thread overview]
Message-ID: <1409031625.8727.1.camel@nilsson.home.kraxel.org> (raw)
In-Reply-To: <etPan.53fc0913.c7bce42.319@Marcs-Air-2.local>

On Mo, 2014-08-25 at 21:11 -0700, Marc wrote:
> Hi,
> 
> 
> On August 25, 2014 at 3:40:01 AM, Gabriele Giacone
> (1o5g4r8o@gmail.com) wrote:
> > 
> > > IMO vncdotool should be fixed to add small delays between
> > keyboard 
> > > events, as if a real person is typing, instead of sending the key
> > events 
> > > at the maximum possible speed. 
> vncdotool does have a —delay=MILLISECONDS switch that inserts a delay
> between commands.  Currently, the two behaviours causing trouble seem
> to be that delay defaults to 0 and "type insecure” is considered one
> command, so there is  no delay between key presses :(  
> 
> Is there a non-zero value for —delay that makes sense?  I’m somewhat
> hesitant to change —delay  as it would be a behavioural change for
> other users, but if the value is sufficiently small it could be a net
> usability gain.
> 
> Are you requesting that the type command be fixed to insert delays
> after every character or that default for —delay should be non-zero?

There should be a delay after every character.  It can be pretty small.
10ms should be enough (you should set TCP_NODELAY though to make sure
the key events are not buffered in the network stack).

I guess it makes sense to decouple that from the delay between commands
as the time a qemu guest needs to process a command can be much higher
than the time it needs to process a key event.

cheers,
  Gerd

  reply	other threads:[~2014-08-26  5:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-23  8:56 [Qemu-devel] [bisected] VNC server can't get all sent chars correctly Michael Tokarev
2014-08-25  3:19 ` Gonglei (Arei)
2014-08-25  7:30 ` Markus Armbruster
2014-08-25  7:36   ` Gonglei (Arei)
2014-08-25  9:37 ` Gerd Hoffmann
2014-08-25 10:40   ` [Qemu-devel] Bug#758881: " Gabriele Giacone
2014-08-26  4:11     ` Marc
2014-08-26  5:40       ` Gerd Hoffmann [this message]
2014-08-26  5:55         ` Michael Tokarev
2014-08-26  6:08           ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1409031625.8727.1.camel@nilsson.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=1o5g4r8o@gmail.com \
    --cc=758881@bugs.debian.org \
    --cc=arei.gonglei@huawei.com \
    --cc=mjt@tls.msk.ru \
    --cc=qemu-devel@nongnu.org \
    --cc=sibson+vncdotool@gmail.com \
    --cc=sibson@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).