git-annex/Remote
Joey Hess c3df5d1f10
avoid double-connect to unreachable ssh remote
When git-annex-shell p2pstdio fails with 255, it's because the ssh
server is not reachable. Avoid running the fallback action in this case,
since it would just try a second time to connect, and presumably fail.

Note that the closed P2PSshConnection will not be stored in the pool,
so the next request tries again to connect. This is just the right
behavior; when the remote becomes reachable again, the same git-annex
process will start using it.

This commit was sponsored by Ole-Morten Duesund on Patreon.
2018-03-12 16:50:21 -04:00
..
Directory remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
External Added EXTENSIONS to external special remote protocol. 2018-02-07 15:02:12 -04:00
Helper avoid double-connect to unreachable ssh remote 2018-03-12 16:50:21 -04:00
Rsync Support exporttree=yes for rsync special remotes. 2018-02-28 13:36:20 -04:00
WebDAV webdav: Avoid unncessisarily creating the collection at the top of the repo 2017-10-11 11:10:33 -04:00
BitTorrent.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Bup.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Ddar.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Directory.hs Fix directory special remote's cleanup of empty export directories. 2017-11-08 14:38:24 -04:00
External.hs Added EXTENSIONS to external special remote protocol. 2018-02-07 15:02:12 -04:00
GCrypt.hs Improve startup time for commands that do not operate on remotes 2018-01-09 16:22:07 -04:00
Git.hs avoid double-connect to unreachable ssh remote 2018-03-12 16:50:21 -04:00
Glacier.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Hook.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
List.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
P2P.hs move protocol version stuff to the Net free monad 2018-03-12 15:20:51 -04:00
Rsync.hs Support exporttree=yes for rsync special remotes. 2018-02-28 13:36:20 -04:00
S3.hs fix version number 2017-10-11 11:43:03 -04:00
Tahoe.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Web.hs avoid warning when youtube-dl is not installed 2017-11-30 13:43:55 -04:00
WebDAV.hs avoid build warning with old version of http 2017-11-21 12:45:49 -04:00