mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-01-08 16:14:26 +00:00
Merge "Repo: improve error detection for new ssh connections"
This commit is contained in:
commit
628456833a
@ -464,9 +464,13 @@ def _open_ssh(host, port=None):
|
|||||||
% (host,port, str(e)), file=sys.stderr)
|
% (host,port, str(e)), file=sys.stderr)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
time.sleep(1)
|
||||||
|
ssh_died = (p.poll() is not None)
|
||||||
|
if ssh_died:
|
||||||
|
return False
|
||||||
|
|
||||||
_master_processes.append(p)
|
_master_processes.append(p)
|
||||||
_master_keys.add(key)
|
_master_keys.add(key)
|
||||||
time.sleep(1)
|
|
||||||
return True
|
return True
|
||||||
finally:
|
finally:
|
||||||
_master_keys_lock.release()
|
_master_keys_lock.release()
|
||||||
|
Loading…
Reference in New Issue
Block a user