From: Michal Sojka <sojkam1@fel.cvut.cz>
To: Jesse Rosenthal <jrosenthal@jhu.edu>, notmuch@notmuchmail.org
Subject: Re: Remote usage script updated
Date: Tue, 15 Feb 2011 22:42:50 +0100 [thread overview]
Message-ID: <87lj1hrn39.fsf@wsheee.2x.cz> (raw)
In-Reply-To: <m1k4h8syhi.fsf@watt.hwcampus.jhu.edu>
On Wed, 09 Feb 2011, Jesse Rosenthal wrote:
> Michal,
>
> On Sun, 06 Feb 2011 00:58:29 +0100, Michal Sojka <sojkam1@fel.cvut.cz> wrote:
> > Hmm, this code worked well with dropbear ssh server but it seems that
> > with openssh server the result is not that good. Namely, if the master
> > connection is dead, the command running true blocked for a long time.
>
> Seemed to work okay for me when I played around with it a bit (in
> different circumstances, and with a confused laptop waking up from
> hibernation). But I'll hold off on updating it till I can figure out the
> most reliable way.
Hi Jesse,
I've just found that there is a SSH option called ControlPersist and
this is the missing piece to reliable connection sharing for notmuch
remote script. This option is available since openssh 5.6
(http://www.openssh.org/txt/release-5.6) with a fix of race conditions
in 5.7 (http://www.openssh.org/txt/release-5.7).
Now I have in my script the following command:
ssh -x -a -oControlMaster=auto -oControlPersist=600 -S $SOCKET $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${CMD} ${args}
where SOCKET="${CACHE}/.ssh-socket-${USER}@${SSH_HOST}" and it works
perfectly.
Unfortunately, this option is not supported in recently released Debian
Squeeze but from http://bugs.debian.org/594295 seems that it might be
supported later, perhaps in a point release.
-Michal
next prev parent reply other threads:[~2011-02-15 21:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-27 15:51 Remote usage script updated Jesse Rosenthal
2011-01-28 2:54 ` Carl Worth
2011-01-28 20:10 ` Jesse Rosenthal
2011-02-05 7:38 ` Michal Sojka
2011-02-05 23:58 ` Michal Sojka
2011-02-09 21:13 ` Jesse Rosenthal
2011-02-11 6:55 ` Michal Sojka
2011-02-15 21:42 ` Michal Sojka [this message]
2011-03-03 16:38 ` Kristoffer Ström
2011-03-04 20:38 ` Jesse Rosenthal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lj1hrn39.fsf@wsheee.2x.cz \
--to=sojkam1@fel.cvut.cz \
--cc=jrosenthal@jhu.edu \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).