From a087841ae775a14197c1550488f54b5761f4700b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 11 May 2017 17:33:18 -0400 Subject: Ssh password prompting improved when using -J When ssh connection caching is enabled (and when GIT_ANNEX_USE_GIT_SSH is not set), only one ssh password prompt will be made per host, and only one ssh password prompt will be made at a time. This also fixes a race in prepSocket's stale ssh connection stopping when run with -J. It was possible for one thread to start a cached ssh connection, and another thread to immediately stop it, resulting in excess connections being made. This commit was supported by the NSF-funded DataLad project. --- Messages/Internal.hs | 1 - 1 file changed, 1 deletion(-) (limited to 'Messages') diff --git a/Messages/Internal.hs b/Messages/Internal.hs index 7ea8ee067..6ec72812a 100644 --- a/Messages/Internal.hs +++ b/Messages/Internal.hs @@ -13,7 +13,6 @@ import Types.Messages import Messages.Concurrent import Messages.JSON - withMessageState :: (MessageState -> Annex a) -> Annex a withMessageState a = Annex.getState Annex.output >>= a -- cgit v1.2.3