From nobody Mon Feb 9 16:35:04 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1601298797; cv=none; d=zohomail.com; s=zohoarc; b=D7R7TARbPViRvf39fbsRbD+kI3mJRXZaxUQiifQ/spr1dmvYjQZZPcZGO8SJO57TyqGEv5Efj9PyU0Df/h/Go0AGXXpIIfdw0S9/LyC6nwhmohjKP6JUpzC2QcwBdYVnsru0q/EWIvZWiNAcUxfopAVg6+XmYJnmNzIHsZVWx00= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1601298797; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=iydh1+OFIun0KIyNqW8BJ9kocr2EzXASZ4uiaNG2h0E=; b=iqh2TKK4Xwns7XZFcdKm8iS+hJypHOqcR+SG4u3LM0C6Efa4FIZ110QpiSVy6OzvXiF8W5AAavILC2n1v4DWISA97iYs5B1T5ERkfcHmW9ROnU8YWcMLqUGsJFYqSNPelnc0cxBgEZf/nANw8ViMwpetruJ3jmSlnu+WvFM0pvY= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1601298797653344.4587717472034; Mon, 28 Sep 2020 06:13:17 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kMsxd-0004Eh-5y; Mon, 28 Sep 2020 13:12:57 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kMsxb-0004DB-Qt for xen-devel@lists.xenproject.org; Mon, 28 Sep 2020 13:12:55 +0000 Received: from chiark.greenend.org.uk (unknown [2001:ba8:1e3::]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 71dbab40-fd75-45a1-9145-7c6ffc6a0c87; Mon, 28 Sep 2020 13:12:46 +0000 (UTC) Received: from [172.18.45.5] (helo=zealot.relativity.greenend.org.uk) by chiark.greenend.org.uk (Debian Exim 4.84_2 #1) with esmtp (return-path ijackson@chiark.greenend.org.uk) id 1kMsxQ-0007vv-QS; Mon, 28 Sep 2020 14:12:44 +0100 X-Inumbo-ID: 71dbab40-fd75-45a1-9145-7c6ffc6a0c87 From: Ian Jackson To: xen-devel@lists.xenproject.org Cc: Ian Jackson Subject: [OSSTEST PATCH 2/5] TCP fix: Do not wait for queuedaemon to speak Date: Mon, 28 Sep 2020 14:12:38 +0100 Message-Id: <20200928131241.30278-3-iwj@xenproject.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200928131241.30278-1-iwj@xenproject.org> References: <20200928131241.30278-1-iwj@xenproject.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Content-Type: text/plain; charset="utf-8" From: Ian Jackson This depends on the preceding daemonlib patch and an ms-queuedaemon restart. Signed-off-by: Ian Jackson --- Osstest/Executive.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Osstest/Executive.pm b/Osstest/Executive.pm index 61a99bc3..80e70070 100644 --- a/Osstest/Executive.pm +++ b/Osstest/Executive.pm @@ -643,7 +643,16 @@ sub tcpconnect_queuedaemon () { my $qserv=3D tcpconnect($c{QueueDaemonHost}, $c{QueueDaemonPort}); $qserv->autoflush(1); =20 + # TCP connections can get into a weird state where the client + # thinks the connection is open but the server has no record + # of it. To avoid this, have the client speak without waiting + # for the server. + # + # See A TCP "stuck" connection mystery" + # https://www.evanjones.ca/tcp-stuck-connection-mystery.html + print $qserv "noop\n"; $_=3D <$qserv>; defined && m/^OK ms-queuedaemon\s/ or die "$_?"; + $_=3D <$qserv>; defined && m/^OK noop\s/ or die "$_?"; =20 return $qserv; } --=20 2.20.1