Fix ssh connection multiplexing race condition #542

Increase ControlPersist to 2h.
After host run run ssh mux master exit command.
If custom remote exec/copy is specified then do nothing.
This commit is contained in:
Darko Poljak 2017-07-06 12:43:17 +02:00
commit 9c914308f6
3 changed files with 35 additions and 6 deletions

View file

@ -36,7 +36,7 @@ def inspect_ssh_mux_opts():
wanted_mux_opts = {
"ControlPath": "{}",
"ControlMaster": "auto",
"ControlPersist": "10",
"ControlPersist": "2h",
}
mux_opts = " ".join([" -o {}={}".format(
x, wanted_mux_opts[x]) for x in wanted_mux_opts])