Received: from eggs.gnu.org ([2001:4830:134:3::10]:35068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XblAj-0005T3-Ac for qemu-devel@nongnu.org; Wed, 08 Oct 2014 02:56:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XblAe-0006V5-V1 for qemu-devel@nongnu.org; Wed, 08 Oct 2014 02:56:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XblAe-0006Uz-O7 for qemu-devel@nongnu.org; Wed, 08 Oct 2014 02:56:24 -0400 From: Markus Armbruster References: <1412618363-14968-1-git-send-email-minyard@acm.org> <1412618363-14968-2-git-send-email-minyard@acm.org> Date: Wed, 08 Oct 2014 08:56:18 +0200 In-Reply-To: <1412618363-14968-2-git-send-email-minyard@acm.org> (minyard@acm.org's message of "Mon, 6 Oct 2014 12:59:22 -0500") Message-ID: <87lhorqcbx.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 1/2] qemu-char: Fix reconnect socket error reporting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: minyard@acm.org Cc: Corey Minyard , qemu-devel@nongnu.org minyard@acm.org writes: > From: Corey Minyard > > If reconnect was set, errors wouldn't always be reported. > Fix that and also only report a connect error once until a > connection has been made. > > The primary purpose of this is to tell the user that a > connection failed so they can know they need to figure out > what went wrong. So we don't want to spew too much > out here, just enough so they know. > > Signed-off-by: Corey Minyard > --- > qemu-char.c | 47 ++++++++++++++++++++++++++++++++--------------- > 1 file changed, 32 insertions(+), 15 deletions(-) > > diff --git a/qemu-char.c b/qemu-char.c > index 62af0ef..fb895c7 100644 > --- a/qemu-char.c > +++ b/qemu-char.c > @@ -2509,6 +2509,7 @@ typedef struct { > > guint reconnect_timer; > int64_t reconnect_time; > + bool connect_err_reported; > } TCPCharDriver; > > static gboolean socket_reconnect_timeout(gpointer opaque); Doesn't apply, obviously depends on some other patch. Always state your dependencies explicitly in the cover letter! [...]