From owner-freebsd-ports@freebsd.org Thu Aug 11 16:30:26 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F676BB6F33; Thu, 11 Aug 2016 16:30:26 +0000 (UTC) (envelope-from cgull@glup.org) Received: from glup.org (216-15-121-172.c3-0.smr-ubr2.sbo-smr.ma.static.cable.rcn.com [216.15.121.172]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 033F41F28; Thu, 11 Aug 2016 16:30:25 +0000 (UTC) (envelope-from cgull@glup.org) Received: from lister.boston.niksun.com (unknown [4.16.10.2]) by glup.org (Postfix) with ESMTPSA id 09C78854C4; Thu, 11 Aug 2016 12:30:24 -0400 (EDT) Authentication-Results: glup.org; dmarc=none header.from=glup.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=glup.org; s=201009; t=1470933024; bh=1GQSLXptTwR303b6mLxHNlQOcMMQTmnsxVWiWcB7YDc=; h=Subject:To:References:Cc:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=WGWwWUVq9qEQBqK2AwayZ6ZVPYT2+AWwyOHwnrkFFw3p3saiIhc9VQ5k1YYo3lgTS n/TfHWGLzRaJzuci1khQOCaNFTMYznAY1vCAfGjaafW9jWu+W+fGmFcNXQ8k4F8ICG mFSRJq333/y1rRmeq0H6oChl1bVDELdGLirNp+/WzltekuW/BAFeV8WjLUTVycJ749 hacl6d4jfvcw0QEdR9TGWrXLVl2ljn/HY67hOXdD14zbD0LrQTpRMyK9U/Au/GNvYw hXMJbxF1Ep2gt0yvarKTHoBHKzLzlSg37Wl+9evYFsCO5uIcbViC/Jlyw9EO9ue7Df ZzrXeNs3x0TMA== Subject: Re: Mosh regression between 10.x and 11-stable To: Peter Jeremy References: <20160810081831.GA65184@server.rulingia.com> <20160811101928.GC65184@server.rulingia.com> Cc: freebsd-ports@freebsd.org, freebsd-current@freebsd.org, mosh-devel@mit.edu From: John Hood Message-ID: <68d0a6d4-2078-000c-6e22-b0b8721dfd2b@glup.org> Date: Thu, 11 Aug 2016 12:30:23 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160811101928.GC65184@server.rulingia.com> Content-Type: multipart/mixed; boundary="------------0B8B2C5FE966D46E2227F80E" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2016 16:30:26 -0000 This is a multi-part message in MIME format. --------------0B8B2C5FE966D46E2227F80E Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit I still can't reproduce this on 3 different 11.0-BETA4 servers and a variety of clients and networks. Can you try and identify a more portable repro or at least figure out why it fails on your system? Please try applying this patch, too. It's a shot in the dark, though. regards, --jh --------------0B8B2C5FE966D46E2227F80E Content-Type: text/x-patch; name="0001-Ensure-MOSH-CONNECT-message-reaches-sshd.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-Ensure-MOSH-CONNECT-message-reaches-sshd.patch" >From 4c4d2193af37f4375d9f7d52c109bbcdb873d9fc Mon Sep 17 00:00:00 2001 From: John Hood Date: Thu, 11 Aug 2016 12:25:55 -0400 Subject: [PATCH] Ensure MOSH CONNECT message reaches sshd. --- src/frontend/mosh-server.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/mosh-server.cc b/src/frontend/mosh-server.cc index a88a8d2..cd25a14 100644 --- a/src/frontend/mosh-server.cc +++ b/src/frontend/mosh-server.cc @@ -410,6 +410,9 @@ static int run_server( const char *desired_ip, const char *desired_port, printf( "\nMOSH CONNECT %s %s\n", network->port().c_str(), network->get_key().c_str() ); fflush( stdout ); + if ( isatty( fileno( stdout ))) { + tcdrain( fileno( stdout )); + } /* don't let signals kill us */ struct sigaction sa; -- 2.9.2 --------------0B8B2C5FE966D46E2227F80E--