git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: support git+mosh for unreliable connections

From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
Date
Apr 15, 2015, 19:25 UTC
Message-ID
<1429125944.16649.2.camel@kaarsemaker.net>
In-Reply-To
<31749ad9ba57ada7f9c553191ffaddb3@www.dscho.org>
On wo, 2015-04-15 at 19:46 +0200, Johannes Schindelin wrote:
> On 2015-04-15 17:33, Trevor Saunders wrote:
> > but it certainly does support ssh <host> <command>
> > and then doing IO.
> 

Yes, in interactive sessions. mosh synchronizes terminal state, it doesn't allow random I/O between client and server.

> Ah, so mosh's README lied to me!
> 
> If `mosh <user>@<host> <command>` works, then a simple `GIT_SSH=mosh`
> should work out of the box, too. Have you tried it?

It does not and cannot work. The way mosh works, is that it uses ssh to log in and launch a mosh-server daemon. This daemon and the mosh client then communicate via a custom UDP protocol. The SSH connection is closed after the mosh-server has been launched as it is no longer needed.

The communication between the mosh client and server synchronizes terminal state, somewhat like what screen/tmux do.

-- 
Dennis Kaarsemaker
www.kaarsemaker.net
Previous: Michael J GruberNext: Andreas Krey
Message 10 of 15 in “support git+mosh for unreliable connections”
  1. Pirate PraveenApr 15, 2015
  2. Dennis KaarsemakerApr 15, 2015
  3. Michael J GruberApr 15, 2015
  4. Pirate PraveenApr 15, 2015
  5. Johannes SchindelinApr 15, 2015
  6. Trevor SaundersApr 15, 2015
  7. Johannes SchindelinApr 15, 2015
  8. Trevor SaundersApr 15, 2015
  9. Michael J GruberApr 16, 2015
  10. Dennis KaarsemakerApr 15, 2015
  11. Andreas KreyApr 22, 2015
  12. Johannes SchindelinApr 15, 2015
  13. Pirate PraveenApr 15, 2015
  14. Ilari LiusvaaraApr 15, 2015
  15. Pirate PraveenApr 20, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.