Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Aug 2016 12:30:23 -0400
From:      John Hood <cgull@glup.org>
To:        Peter Jeremy <peter@rulingia.com>
Cc:        freebsd-ports@freebsd.org, freebsd-current@freebsd.org, mosh-devel@mit.edu
Subject:   Re: Mosh regression between 10.x and 11-stable
Message-ID:  <68d0a6d4-2078-000c-6e22-b0b8721dfd2b@glup.org>
In-Reply-To: <20160811101928.GC65184@server.rulingia.com>
References:  <20160810081831.GA65184@server.rulingia.com> <d577d1f9-d3ce-ee83-1051-d83d0c96591b@glup.org> <20160811101928.GC65184@server.rulingia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <cgull@glup.org>
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?68d0a6d4-2078-000c-6e22-b0b8721dfd2b>