From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Schindelin Subject: Re: support git+mosh for unreliable connections Date: Wed, 15 Apr 2015 19:46:15 +0200 Organization: gmx Message-ID: <31749ad9ba57ada7f9c553191ffaddb3@www.dscho.org> References: <552E628C.7040809@debian.org> <552E6D07.5030903@drmicha.warpmail.net> <552E732E.20107@debian.org> <0cf0485caae569a71a8bd1aa8d1033cb@www.dscho.org> <20150415153317.GA21768@tsaunders-iceball.corp.tor1.mozilla.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Pirate Praveen , Michael J Gruber , git@vger.kernel.org, git-owner@vger.kernel.org To: Trevor Saunders X-From: git-owner@vger.kernel.org Wed Apr 15 19:46:27 2015 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YiRON-0006E6-5g for gcvg-git-2@plane.gmane.org; Wed, 15 Apr 2015 19:46:27 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755947AbbDORqX (ORCPT ); Wed, 15 Apr 2015 13:46:23 -0400 Received: from mout.gmx.net ([212.227.15.15]:63174 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753586AbbDORqV (ORCPT ); Wed, 15 Apr 2015 13:46:21 -0400 Received: from www.dscho.org ([87.106.4.80]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MOOpx-1Ym2IO0E3Z-005qz0; Wed, 15 Apr 2015 19:46:17 +0200 In-Reply-To: <20150415153317.GA21768@tsaunders-iceball.corp.tor1.mozilla.com> X-Sender: johannes.schindelin@gmx.de User-Agent: Roundcube Webmail/1.1.0 X-Provags-ID: V03:K0:DvCdy1mo8tLyZFe761p6nY9QE+a+AS2/pnbulPlqr2QAn16LUqK 7S8MP/oubzzStsQhZzVNuPts9q/pgE477JzlH3IuobXMoBDDguGx6OpIdCDs5OUDd7owNP0 V7X//Pw8qml6XSwMPsy4fTubLy0HTOT1hXJ26Ymra/l99gPKpm2pvQjI2PLvF7DLSjHtm36 QoK5TOlPrAEnmz+ggvScw== X-UI-Out-Filterresults: notjunk:1; Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Hi Trevor, On 2015-04-15 17:33, Trevor Saunders wrote: > On Wed, Apr 15, 2015 at 04:41:42PM +0200, Johannes Schindelin wrote: >> >> On 2015-04-15 16:18, Pirate Praveen wrote: >> > On Wednesday 15 April 2015 07:22 PM, Michael J Gruber wrote: >> >> What would that require git to do, beyond taking whatever you tell it >> >> (using GIT_SSH or _GIT_SSH_COMMAND) to use as a drop in replacement for ssh? >> > >> > May be support git+mosh as a protocol, since it is not a drop in >> > replacement. It is redesigned remote shell. The ideas it uses for >> > session resumption needs to be reimplemented. This will need support >> > from git, because it needs server side to be modified. Use SSP to return >> > the the current progress for a particular session (it uses AES session ids). >> >> It will need support from Git alright, but not as much as from mosh, see my other reply: Mosh was not designed for non-interactive use. That support would have to be added before we can go any further. > > is that really relevent? mosh doesn't support things like X forwarding > or port forwarding, but it certainly does support ssh > and then doing IO. Ah, so mosh's README lied to me! If `mosh @ ` works, then a simple `GIT_SSH=mosh` should work out of the box, too. Have you tried it? Ciao, Johannes It might not support not doing terminal emulation > stuff, but that seems like a simple thing to change in principal at which > point I think it would support enough of ssh's functionality its a drop > in replacement as far as git is concerned. Seems to me mosh is close > enough on its own its worth experimentation by someone who cares. > > Trev > >> > So when a client connect with a session id, git server side can respond >> > with the current state, how many objects received in that session, and >> > client can continue from where it stopped. Client also will need to >> > store session information. >> >> No, the protocol can stay exactly the same, once you have a way to communicate non-interactively via mosh. >> >> Ciao, >> Johannes >> -- >> To unsubscribe from this list: send the line "unsubscribe git" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html