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


>From 4c4d2193af37f4375d9f7d52c109bbcdb873d9fc Mon Sep 17 00:00:00 2001
From: John Hood <cg...@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

_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to