commit | 628456833a9be237c7373254fbe0771b2e802a88 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Tue Sep 20 08:06:12 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Sep 20 08:06:12 2016 +0000 |
tree | b4d840a6430972a2256644e3b47e1846a6e870d4 | |
parent | 2aa61d0bc827b1eaaf9865f1e1445386571e3f30 [diff] | |
parent | 05dc46b0e3c008f9f83a576e59c74fd17735dfa9 [diff] |
Merge "Repo: improve error detection for new ssh connections"
diff --git a/git_config.py b/git_config.py index 09c4b48..f76cd04 100644 --- a/git_config.py +++ b/git_config.py
@@ -464,9 +464,13 @@ % (host,port, str(e)), file=sys.stderr) return False + time.sleep(1) + ssh_died = (p.poll() is not None) + if ssh_died: + return False + _master_processes.append(p) _master_keys.add(key) - time.sleep(1) return True finally: _master_keys_lock.release()