git-annex/Remote/Helper
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
..
Chunked remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
AWS.hs S3: Support the special case endpoint needed for the cn-north-1 region. 2016-11-07 11:49:34 -04:00
Chunked.hs fix giveup shadowing 2016-11-16 00:28:10 -04:00
Encryptable.hs implement exporttree=yes configuration 2017-09-04 13:09:38 -04:00
Export.hs refactor 2017-09-20 16:22:32 -04:00
Git.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Hooks.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Http.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00
Messages.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00
P2P.hs use P2P protocol for checkpresent, retrieve, and store 2018-03-09 13:25:16 -04:00
ReadOnly.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Special.hs add gitAnnexTmpWorkDir and withTmpWorkDir 2017-11-29 13:53:39 -04:00
Ssh.hs avoid double-connect to unreachable ssh remote 2018-03-12 16:50:21 -04:00