From: Avi Kivity <avi@redhat.com>
To: David Ahern <dsahern@gmail.com>
Cc: Yaniv Kaul <ykaul@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] resetting a stale VNC connection
Date: Tue, 21 Apr 2009 21:38:10 +0300 [thread overview]
Message-ID: <49EE1292.20608@redhat.com> (raw)
In-Reply-To: <49EE1166.4040409@gmail.com>
David Ahern wrote:
> This patch enables TCP keepalives on VNC connections. After 60-seconds
> of idle time, probes are sent every 2 seconds with the connection
> resetting after 4 failed probes. This might be a rather aggressive
> setting -- 8 seconds until connection is reset.
>
>
I think you are right, it's too aggressive. Maybe reduce it so it takes
a minute until we give up.
> Also, I believe this is a linux-specific way of doing this; not sure
> what the posix/windows method is. Open to suggestions.
>
At the very least, you need to wrap this in a #if defined(...) &&
defined (...) ... so it doesn't break compilation on hosts that don't
support those socket options.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
next prev parent reply other threads:[~2009-04-21 18:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-21 13:01 [Qemu-devel] resetting a stale VNC connection David S. Ahern
2009-04-21 13:38 ` Avi Kivity
2009-04-21 15:10 ` David S. Ahern
2009-04-21 16:12 ` Avi Kivity
2009-04-21 16:19 ` Yaniv Kaul
2009-04-21 16:28 ` David S. Ahern
2009-04-21 16:33 ` Avi Kivity
2009-04-21 18:33 ` David Ahern
2009-04-21 18:38 ` Avi Kivity [this message]
2009-04-21 16:38 ` Yaniv Kaul
2009-04-21 16:40 ` Daniel P. Berrange
2009-04-21 16:49 ` Anthony Liguori
2009-04-21 17:17 ` Daniel P. Berrange
2009-04-21 19:30 ` David S. Ahern
2009-04-21 19:32 ` Anthony Liguori
2009-04-22 8:18 ` 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=49EE1292.20608@redhat.com \
--to=avi@redhat.com \
--cc=dsahern@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=ykaul@redhat.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 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.